quick question : can we use a word as a counter variable ? I've tried but it seems it only counts to 255 and consider any higher value to be equal to 255
just got mine ;) thanks for the tip
indeed ! I (naively) assumed that GCB would deduce the direction from the value it gets. thanks a lot
Trying to passing a value to a FOR statement with a simple byte variable and it doens't work. Am I doing it wrong ? The first FOR doens't work, the second one works obviously. ;Chip Settings #chip 18F47K40 #config RSTOSC=HFINTOSC_64MHZ ;Defines (Constants) #define LCD_IO 8 #define LCD_RS PORTA.3 #define LCD_RW PORTA.5 #define LCD_Enable PORTE.0 #define LCD_DATA_PORT PORTD #define USART_BAUD_RATE 31250 #define LCD_DB0 PORTD.0 #define LCD_DB1 PORTD.1 #define LCD_DB2 PORTD.2 #define LCD_DB3 PORTD.3...
I can confirm that 18f47k40 do work fine with MPLABX IPE but you must lower the expected voltage to 4.65V or something like that for it to be detected / programmed. Can't get Timer0 to work on these puppies though so i suspect the chip definition file should be updated, but frankly it is most probably due to my lack of expertise.
Very useful stuff. Thanks !
simple naive question : could this be potentially taken care of by the compiler ? i mean could we use the simple adressing syntax with a variable in our code and let the compiler do all the masking tricks ?
nice. Thanks. Can you explain the basic theory of the queue ?