+ Reply to Thread
Page 2 of 2
First 1 2
Results 16 to 26 of 26

Thread: A freeware virtual breadboard

  1. #16
    mramos1 Excellent mramos1 Excellent mramos1 Excellent mramos1 Excellent
    Join Date
    Sep 2005
    Location
    Boynton Beach, Florida USA
    Posts
    2,254

    Default

    Atmel AVR, see my signature. I have an STK-500 abd RVKBasic (free)..

    Far as Proton, there is a market they are missing. Sounds like a nice package, I just do not need the sun-roof, nicer riim, etc .

    And with 50 lines of code and all the options you mention it has how can one try it? One part at a time maybe.

    Maybe Sanata will get me one this year.


  2. #17
    agent420 Newbie
    Join Date
    Jun 2006
    Location
    3rd stoned from the sun
    Posts
    73

    Default

    Quote Originally Posted by mramos1
    Atmel AVR, see my signature. I have an STK-500 abd RVKBasic (free)..
    That site is a bit confusing... On the main page it infers the demo version is limited to 100 lines (full ver $45), on the downloads page it appears to be free; or is demo free? If it's $45 I'd consider investing in Bascom instead, especially for the simulator.

    C is another option worth considering.

  3. #18
    mvs sarma Excellent mvs sarma Excellent mvs sarma Excellent mvs sarma Excellent mvs sarma Excellent mvs sarma Excellent mvs sarma Excellent mvs sarma Excellent mvs sarma Excellent
    Join Date
    Oct 2006
    Location
    Hyderabad, India.
    Posts
    2,470
    Blog Entries
    1

    Default

    Hi,
    Generally Demos are free or full version is free but time limited. we can't expect more than that. for e.g., PICsimide is free for 30 attempts and after that one has to pay for depending on whether home of commercial use. It has also similar facilities.
    Regards,
    Sarma.

  4. #19
    Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent
    Join Date
    Apr 2006
    Location
    England
    Posts
    12,888

    Default

    I hate limeted trial programs that stop working after a certain perioud of time of number of uses; they never fully uninstall properly, you alwayas have to delete some files of sift through the registry to completely remove them.

    I do not answer private messages asking for help because no one else can: benefit from advice I may give or correct me if I'm wrong.

    Please ask on the open forum if you have a question and I'll be happy to help,
    if I know the answer.

  5. #20
    mramos1 Excellent mramos1 Excellent mramos1 Excellent mramos1 Excellent
    Join Date
    Sep 2005
    Location
    Boynton Beach, Florida USA
    Posts
    2,254

    Default

    I hate the timed trials, I might load something, get busy and not get back to it for a week or two.

  6. #21
    Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent
    Join Date
    Apr 2006
    Location
    England
    Posts
    12,888

    Default

    I mostly prefer free sofware (as in open source) anyway.

    I do not answer private messages asking for help because no one else can: benefit from advice I may give or correct me if I'm wrong.

    Please ask on the open forum if you have a question and I'll be happy to help,
    if I know the answer.

  7. #22
    gramo Excellent gramo Excellent gramo Excellent gramo Excellent gramo Excellent gramo Excellent
    Join Date
    Oct 2006
    Location
    Australia
    Posts
    1,207
    Blog Entries
    3

    Default

    Quote Originally Posted by mramos1
    And with 50 lines of code And all the options you mention it has how can one try it? One part At a time maybe.

    Just a reminder On that restriction, that’s 50 lines of Proton code, Not the .ASM Or .HEX it compiles it down too And it excludes REMARKS and labels, there’s a damn lot you can do with 50 lines in Proton(it may compile To any number of lines)


    Code:
    Device = 16F877A
    XTAL = 4
    ALL_DIGITAL = False
    PORTB_PULLUPS = True
    
    LCD_DTPIN = PORTB.4
    LCD_RSPIN = PORTB.2
    LCD_ENPIN = PORTB.3
    LCD_INTERFACE = 4			' Setup the LCD
    LCD_LINES = 2
    LCD_TYPE = 0
    
    Declare SCL_PIN PORTC.0
    Declare SDA_PIN PORTC.1	
    
    Dim Result As Float        ' Create a register accurate from  -2147483646.999 to +2147483646.999
    Dim Sign As Byte
    Dim Cnt As Byte
    Dim Count_Per_Deg As Byte
    Dim Temp As Word
    Dim Temp_Dec As Byte
    Symbol DQ=PORTD.1       'Place the DS1820 on bit 1 of PORTD
    	
       DelayMS 150
       Cls
    	
       Print At 2, 1, "Power is On"
    	
       TRISA = %11111111 			
       ADCON1 = %10000000
    
    Main:
    
        Result = ADIn 0
    
        EWrite 00, Result
        
        Print At 1,1, DEC2 Result * 5 / 1023, "V"
     
        BStart	  						  	 ' Send the start command on I2C
      	BusOut %10100010,$00,[Result]        ' Send the byte to the eeprom
        BStop								 ' Send the stop command on I2C
    
    
        OWrite DQ, 1,[$55,$10,$92,$1F,$05,$01,$08,$00,$6B,$44] 'Send calculate temperature command
    	   	      ' FF  I1  I2  I3  I4  I5  I6 CRC	   ' FF - Family, Ix - Address byte, CRC - checksum
        Repeat
    	  DelayMS 25 'Wait until conversion is compleate
    	  ORead DQ,4,[Cnt] 'Keep reading low puses until
        Until Cnt <> 0 'the DS1820 is finished
    
        OWrite DQ,1,[$55,$10,$92,$1F,$05,$01,$08,$00,$6B,$BE] 'Send read scratcpad command
    	   	      ' FF  I1  I2  I3  I4  I5  I6 CRC	   ' FF - Family, Ix - Address byte, CRC - checksum
        ORead DQ,2,[Temp.LowByte,Temp.HighByte,Cnt,Cnt,Cnt,Cnt,Cnt,Count_Per_Deg]
    
        Temp_Dec = (6.25 * Cnt)				 ' Each Cnt is 1/16 of a degree, therefor 100/16 = 6.25, and thats our decimal value
    
        If Temp.8=1 Then   	   				 ' Bits 8-15 are 1 for a negative temperature and 0 for a positive
            Temp=(Temp.LowByte ^ $FF) >> 1 	 ' If negative then drop the first bit, and invert the value
            If Cnt = 0 Then Temp = Temp + 1	 ' If Cnt = 0 then increment Temp, as the 1820 does not do this
            Sign = "-" 	   		  	   	 	 ' Change the sign to a negative
        Else
    	   Temp=(Temp >> 1)					 ' If positive then drop the first byte
            Temp_Dec = 100 - Temp_Dec	
            Sign = "+" 	  					 ' And change the sign value to positive
        EndIf
    
        Print At 1,6, Sign, Dec2 Temp, ".", Dec1 Dig Temp_Dec, 1, " DegC  "
        
        GoTo Main
    

    The program above is;
    - Taking an ADC sample from porta.0
    - Storing it in the PICs EEPROM
    - Displaying it on a LCD
    - Sending it via I2C to an external EEPROM to store
    - Requesting data from a DS18S20 using Dallas 1 Wire
    - Receiving the 1 Wire data
    - Displaying the current temperature on the LCD
    - Performing all of the above in a continual loop

    Some of the remarks are jaggerd, but im sure you get the jist
    Last edited by gramo; 5th January 2007 at 01:26 AM.

  8. #23
    mramos1 Excellent mramos1 Excellent mramos1 Excellent mramos1 Excellent
    Join Date
    Sep 2005
    Location
    Boynton Beach, Florida USA
    Posts
    2,254

    Default

    One day I will go dig up the simple program. They might have a bug as I did not have a lot of lines of code (will count them when I dig it up; right) and my task was different than yours in your upload, mine was very simple (all digital IO and maybe ADC on one pin).

    But if I can not download and install and write a simple program. Something is not right. MikroBASIC does all that for me for simple projects. OK for all of them so far.

    After removing a line or two in Proton to add one, over and over. I gave up.

    But a very small program that it did compile with Proton, the code was tight, that is why I focus on them.

    If I need to buy other peoples stuff in the price, I guess I am still out. That is not right.. I will not by a PC that has to come loaded with Windows unless I need Windows.

    Do you work for them or have buddies there and just really like the product that much??

    Why do I need something a company thinks I need.

    If I make Unix machines I do not need Windows. If I want a BASIC compiler, I to not need Proteus/Simulator.

    And your comments on .ASM. I get it. I will use the demo and write the subs in .ASM format since they do not count in the 50 lines. And some of the main in .ASM format to save lines.

    For you non-basic people you can type .asm and write in assembler in most of these SO CALLED Basic compilers. Proton is good but you have to buy a simulator that adds a lot to the price. I do not need that part.

    So it looks like I need MPLABS at this point if I use the .ASM. so much (Nigel is laughing again). And need to find someone that will share some good macros.

  9. #24
    gramo Excellent gramo Excellent gramo Excellent gramo Excellent gramo Excellent gramo Excellent
    Join Date
    Oct 2006
    Location
    Australia
    Posts
    1,207
    Blog Entries
    3

    Default

    Quote Originally Posted by mramos1
    MikroBASIC does all that for me for simple projects. OK for all of them so far.
    If I need to buy other peoples stuff in the price, I guess I am still out. That is not right.. I will not by a PC that has to come loaded with Windows unless I need Windows.
    imho using asm is like using dos - there’s no need to "re-invent' the wheel when you can accurately and efficiently, yes proton is very efficient, use a higher level development suit. Would you ditch Visual Basic/C++ and start writing in assembler/hex on your PC?

    Do you work for them or have buddies there and just really like the product that much??
    I really wish I did!! But no. I'm just trying to share with as many people as I can about how great the development tool is.

    If I make Unix machines I do not need Windows. If I want a BASIC compiler, I to not need Proteus/Simulator.
    Its just one of the perks of buying proton+, it’s a tool - a great tool, but to buy the full version is a lot of coin. With Proteus you can throw in hundreds of digital/analogue components simulate & debug the circuit in minutes, once again, its about where your at, try it, buy it, or just not even use it at all – your choice.

    And your comments on .ASM. I get it. I will use the demo and write the subs in .ASM format since they do not count in the 50 lines. And some of the main in .ASM format to save lines.
    Wont work. You misinterpreted me. Proton may compile the basic file to 200 lines in .ASM - then it compiles it to .HEX - its 50 Proton+ Lines(without remarks/labels)

    Proton is good but you have to buy a simulator that adds a lot to the price. I do not need that part.
    Negative. Protues is NOT a full version with the Proton+ development suit - you are paying for a leading edge PIC programming development suit, not the license of Protues. Its more of a 'basic debugger' in its PDS release, and allows you to only interface with certain components, still extremely useful! I used to use the virtual terminal & lcd components to debug program all the time before putting them into real life apps.

    So it looks like I need MPLABS at this point if I use the .ASM. so much (Nigel is laughing again). And need to find someone that will share some good macros.
    I completely respect Nigel's passion for assembly; I too used to be there. But ASM is not for everyone, and with the growing diversity of PIC micros, and other products on the market (GSM/GPS/XBEE/heaps), there is a growing need for higher level programming

  10. #25
    mramos1 Excellent mramos1 Excellent mramos1 Excellent mramos1 Excellent
    Join Date
    Sep 2005
    Location
    Boynton Beach, Florida USA
    Posts
    2,254

    Default

    gramo:

    I personally use PowerBASIC and x86 ASM. So I would not ditch either. But on a Windows machine, PowerBASIC makes life very simple.

    As for a PIC with say 35 instructions. It is really not all that bad.

    I will stick to my way as it works. But look harder at ASM. Maybe like the old days, write it in BASIC lines with ; in front each line and drop the ASM between.

    Almost $300 for a BASIC compiler, I thought PowerBASICs price was high.
    Last edited by mramos1; 5th January 2007 at 11:13 PM.

  11. #26
    ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent ericgibbs Excellent
    Join Date
    Jan 2007
    Location
    Hampshire. England.
    Posts
    10,783
    Blog Entries
    12

    Default

    Hi panadol,

    I would recommend that you take a look at www.oshonsoft.com, they have a
    pic simulator program, which covers a wide range of pics. The program includes
    a basic compiler which creates a commented assembly listing, as well as the usual
    hex file. The assembler file can be directly ported to the MPLAB IDE program if
    required and is ideal for anyone learning assembler coding.
    Although the pic sim dosn't run at a blinding speed, there are user
    options for internal timings which can be customised. The user program can also
    be stepped for each instruction, ideal for debugging routines.
    The pic sim has a number of modules that can be run from a program under
    development in the pic sim, lcd, uart, switches and leds etc.
    A template is available so that the user can write his own modules for the sim.

    Visit www.manorts.co/phpBB site where you will find a number of simulator
    modules written by pic sim users.

    The pic sim is not free, but is a try and buy.

    Let me know what you think.

    Regards
    EricG

+ Reply to Thread
Page 2 of 2
First 1 2

Tags for this Thread