Think about it - it would be commercial suicide to post some of the more complex code and allow competitors to bring their products to market. For you this might be a hobby, for others it puts food...
Type: Posts; User: Melanie; Keyword(s):
Think about it - it would be commercial suicide to post some of the more complex code and allow competitors to bring their products to market. For you this might be a hobby, for others it puts food...
Certainly it WILL work if you feed a Comparator...
I don't think ADRES will work (should have checked yesterday)... pick a different register. Woke up this morning with something bugging me about your choice... according to the Datasheet ADRES is...
As long as it doesn't adversely impact on the way the PIC is configured and run, you could use any Register as storage or as a variable.
I remember an old long retired IT Manager telling me when...
Just use something like Pheonix to put a simple Comms program into the F84 for PortB.7 (not PortB.0 as in your code at Post #2 above) to talk to your F628, then it's just dialogue between the two to...
This takes me back. I remember doing this at University ten years ago... (everybody at the Halls of Residence was watching free Satellite Pay-TV)!
1. You create an EEPROM LOADER program for the...
Say no more!
Across the top of my screen next to the "Forum" Button is a "What's New" Button...
Personally, I'd have reduced PAUSE by a couple of clicks *smiles*
Yes, pretty much, but I don't think PortB.x will work, so...
ShadowPortB=0
Loop:
for x = 0 to 7
If LoopLED[x] = 0 then
LoopLED[x] = LoopCON[x]
ShadowPortB.0(x)=ShadowPortB.0(x)^1
Have as many LED's as you have pins...
LoopALED var BYTE
LoopBLED var BYTE
LoopCLED var BYTE
LoopDLED var BYTE
LoopELED var BYTE
LoopFLED var BYTE
LoopGLED var BYTE
You won't make it zero. There's hardware between the input and output, and it takes time for the little electrons to wiggle their way through very tiny wiring. You could always strap RA2 directly...
You can cross-feed your HPWM to one of the Hardware Comparators and have it invert the signal.
Rewind a week and check the comment I posted when you last mentioned the above on the DS1307 thread...
Hmmm... how much Test Equipment, time and patience have you got???
(1) If you have a Frequency Counter, program for INTOSC CLKOUT and measure fosc/4 on the GPIO.4 OSCOUT pin. Adjust for 1MHz.
...
I speak for myself, personally, but I am sure most folks will follow the same principles.
If you publicly post anything, be it code or your personal opinions, it becomes public domain. Anyone can...
You've not told us how your MCP23016 is connected.
Do a SEARCH on MCP23016 on this forum - there are code examples.
Malc... if you want 05:05:07 rather than 5:5:7 then...
LCDOut DEC2 DecimalHours,":",DEC2 DecimalMinutes,":",DEC2 DecimalSeconds
hmmmm... DEC2 seems to be something to look up in the manual...
Some folks think in Binary, some in Decimal, other in Hexadecimal.
I like Binary (when dealing with say up to 8 bits), because in my mind it immediately relates to those BIT positions in the PICs...
Never Cut & Paste without first knowing what it is you're doing, otherwise I'll be tempted to put up some code so your PIC will email me the passwords to your Bank Account.
Let's do this real slow...
There's nothing nicer than knowing the time spent in posting something has been of help - even after all the years. *smiles*
Malcolm, you can't have '&$03' for MINUTES (the way you have for HOURS)... but can you figure why and what value it should be if not $03? Correct that small omission and your code will run (there's...
You've set TRIS for PORTD.7 for Output?
You've checked that anything else that share that pin is switched off (eg any Analogue or other devices).
You've connected your LED the correct way...
Last three lines of my post Malcolm...
DecimalHours=RTCHours>>4
DecimalHours=(DecimalHours&$03)*10
DecimalHours=DecimalHours+(RTCHours&$0F)
RTCHours is read from the DS1307. It is in BCD format.
The first line takes bits 4 thru...