Saw this online.
May be of some help.
http://www.instructables.com/id/Reverse-polarity-protection-for-your-circuit-with/
Type: Posts; User: Tabsoft; Keyword(s):
Saw this online.
May be of some help.
http://www.instructables.com/id/Reverse-polarity-protection-for-your-circuit-with/
Sorry for the delayed response.
Here is the library for PBP3.
8249
Enjoy.
That's correct Henrik.
WRITE Address,{WORD}{LONG}Value
WRITE mem_index, WORD temp
Site shows up as a phishing site on an Apple device still.
Have you thought of using a Flag variable?
During your checking routine, set a Flag if you need to write to the PCA.
Check the Flag to determine if you need to do the gosub to write to the PCA chip.
Heckler,
I'll take a look when I get a few moments. See if I can set it up on some hardware and give it a test run for a while.
Scampy,
Use the regular Division "/" operator for the Hours computation and use the Modulo "//" operator for the minutes computation.
lightsetHR1 = (CH1_on_time / 60)
lightsetMN1 =...
Also the DS refers to a separate Application Note regarding this. AN1333
What PIC MCU are you using?
Should you be using LATB register instead of PORTB register for your High and Low statements?
Read modify write may be an issue.
You can also look at this thread.
http://www.picbasic.co.uk/forum/showthread.php?t=19975
Thanks for the kind words.
It was definitely fun.
Got to use some of that old/stored datacom info clogging up my brain and got to use my long arms to stretch across the ocean. :p
I had never...
Scampy,
A couple of things for I2CWrite for sEEPROMs.
1. For the Address, per the manual do not use Constants. Use a variable of the size required by the EEPROM. A 24c256 requires a Word...
Richard,
Great amount of work on this library.
I have to hand it to you, a lot of coding you worked out there.
For my own edification, I have a question for you.
In "TFT_SPI.PBPMOD" you...
Check the PBP manual for the supported DEFINE OSC values.
Just as Richard said.
Look at FIGURE 3-1: PIC18F66K80 FAMILY CLOCK DIAGRAM in the Datasheet.
Look for the 4xPLL block and you will see what feeds into it.
That should make it clear.
Try again. :smile:
Config bits are not in the original post, that's why I asked.
Suggest you determine how you have the OSC mode configured, then look at the OSC block diagram and see what...
Just where I was headed Richard, hence my question.
The registers/config bits would show how he is setting up the clock.
Can you post your currently used config bits, OSCCON, OSCCON2 and OSCTUNE settings?
I must have missed it.....
What PIC?
Try this link about meConfig.
No, not really.
That has been the point of this discussion.
We would not want PBP to do the interim calculations as a byte, we would want PBP to do them as a bit.
The issue is that in this...
For the 18F4580 @ 40MHz you have several options for 9600. I would try option 1 with the best %error rate.
1. Synch = 0, BRGH = 0, BRG16 = 1, SPBRG = 1040 (dec) 0.06% error rate
2. Synch = 0,...
Sorry, autocorrect. :-0
Can you setup your terminal program to receive in hex and capture the repeating string as received?
Swampy,
Isn't the default baud rate for the HC-06 9600?
If so, try setting the HSER port baud rate on the PIC in PBP to 9600.
You would actually send the following if using Serout2.
For Row 4 and Column 20
Serout2 pin, mode, [$1b, "[4;20H"]
Or you can do it all in hex.
Serout2 pin, mode, [$1b, $5b, $34, $3b, $32,...