From £79.95 |
Buy it Now For part numbers ending with suffix: /PT Compatible with the following microcontrollers: PIC18C601, 18C658, 18F6310, 18F6390, 18F6410, 18F6490, 18F6520, 18F6525, 18F6585, 18F6620, 18F6621, 18F6627, 18F6680, 18F6720, 18F6722 |
I didn't mean the speeds, I mean not noticing they were no longer Defines, but Variables and Constants.
I would have spent countless hours looking at my code. :D
I'm working on a piece of code I found in another thread about a DS3231 RTC.
Unfortunately, the used I2CWRITE command has an optional label to jump to.
I don't get what the label is there for....
The timings depend on the type of LCD controller. Ususally the defaults of the manual are OK in most cases.
As Darrel stated they are not optional and should always be on the top of the program.
...
Wow, I haven't used this routine yet, but I have to admit I would have fallen victim to that pesky detail as well. :wink:
I added a NOTE to post #1 in case it helps someone.
I just noticed this gem from Darrel:
https://dt.picbasic.co.uk/CODEX/AtoDAveraging
Yeah, I updated my post with a comment to clear that.
I didn't field particularly clever after racking my brains trying to find the most efficient way to move data around. :D
OK, if you drop length then makes sense.
Using length variable in the STR modifier on the other hand, is very clever.
Ioannis
That was one area that had me overthinking USART. STR ArrayVar\n{\c}, receives a maximum of n bytes, unless it receives character c.
If I misinterpreted the manual, I'd definitely appreciate...
The stop character in the Hserin command is needed if you do not know the length of the string.
Since you define the length at the beginning of the transmission, and then use it in the STR...
From £79.95 |
Buy it Now For part numbers ending with suffix: /PT Compatible with the following microcontrollers: PIC18C601, 18C658, 18F6310, 18F6390, 18F6410, 18F6490, 18F6520, 18F6525, 18F6585, 18F6620, 18F6621, 18F6627, 18F6680, 18F6720, 18F6722 |
Re: I2CWRITE "Label" option - what does it do?
Exactly what is writen in manual :D
pedja089 Today, 01:48I2C Slave send 1 bit response after each byte received. If that bit is missing, then command will jump to label. If label is not present, it will just ignore it,...