PIC16F628A-Temp sensor-7 Seg Multiplexing issue :(

Status
Not open for further replies.
Wooops, I was thinking sleep was like halt in Z80 and would wait for an interrupt and it is except the timers stop during sleep and so it is only external interrupts that wake it up. Thanks for trying anyway.

Mike.
 
Here's the crude 16F690 + DS18B20 + LCD program and schematic. It could be ported to a 16F628A pretty easily.

Regards, Mike


Hi Mike,

Just been trying out your code in a Popular simulator while waiting for the actual sensor to arrive.

When I build your code in 8.46 it gives the warning TRIS Instruction Deprecated etc.
When its run in the simulator it constantly flags up similar TRIS errors while its running although it only displays -0.1C regardless of the sensor temp.

I know your code is very tight, but thought I would just try changing your TRIS PORTB with MOVWF TRISB plus MOVWF PORTA. ( though I might be completely wrong ? )
This complied and ran clean in the simulator but it still just displays -0.1c.

Any help appreciated.
 
Hi Wp100,

Silly me. I'm actually running the code on real hardware (LOL). Don't know what to tell you about your simulator...

Regards, Mike
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…