Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

New Articles From Microcontroller Tips

Back
Top