Here is the program. I'll be away for a week, so no rush.... It is a program I am porting over from an old version of basic - and I am sure there are places I could re-write it much more efficiently! ;Chip Settings chip 16f876, 4 ;4 mhz internal clock config WDTE=OFF, BOREN=OFF, CP=OFF, WRT=OFF DIR PORTB b'11111111' DIR PORTC.1 OUT DIR PORTC.2 OUT DIR PORTC.4 IN DIR PORTC.6 IN DIR PORTA.0 OUT DIR PORTA.1 IN DIR PORTA.2 OUT DIR PORTA.3 OUT IF PORTC.4=1 AND PORTB.1=1 then GOTO ITEM10 end if GOTO ITEM11A...
I am trying to build the HEX file for a new program in 0.98.05 2019-04-20 (Windows 32 bit) and I get thew following error message: Error: GCASM: Symbol 6.0 has not been defined . I can't find a "6.0" anywhere in my program. Where do I start looking for the problem? (It's been 50 years since I did any programming in college.....) Thanks! Bill
As I understand it, all I have to do is write some hex data to some registers, and the Si5351 will generate the desired signal. Silabs provides software that does all the calculations to come up with the appropriate registers and values, so I have the data to go into the chip via I2C. I'll take the data Silabs comes up with, put it in a table in GC Basic, read the table, and send the values to the Si5351 vie I2C. Sounds simple enough....
I'm trying to talk to an Si5351.. It has a default address of dec 96, and will be the only device on the line.
Anobium - Assuming I get the two lines to show me volage change, what do I do next? I have about 30 data points to send via I2C to my device. Do I send the I2C address once and the send all 30 pieces of data, or do I send the I2C address every time I send data to the device?
First - it has been 50 years since I did any programming.. Everything in those 50 years has been hardware. Thats why I want to see those lines move on my scope! The START, SEND(anything), and STOP cmds looped forever should wiggle those lines.....I think! I couldn't find the version of GC Basic , but the date of compile of GC Basic is 0.98.01 2017-10-27 . I did start with the examples in the help file. Nothing seemed to happen, so I am trying to get the two I2C lines to go between plus and zero so...
I have been having trouble getting I2C to work. I have tried an endless loop with an I2C start, send, and stop so I could look at the signal with a Scope with a couple of LEDs blinking so I would know the program was running, and the program won't go. If I comment out the I2C commands, the LEDs blink. What am I missing?? The program follows : ` ;Chip Settings chip 16F18325,4 config FEXTOSC=OFF, RSTOSC=HFINT1, MCLRE=ON ;Defines (Constants) define I2C_MODE Master define I2C_DATA PORTC.5 define I2C_CLOCK...