1. 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.
    Dismiss Notice

PIC16F628A-Temp sensor-7 Seg Multiplexing issue :(

Discussion in 'Microcontrollers' started by jakeselectronics, May 19, 2010.

  1. Pommie

    Pommie Well-Known Member Most Helpful Member

    Joined:
    Mar 18, 2005
    Messages:
    10,024
    Likes:
    317
    Location:
    Brisbane Australia
    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.
     
  2. jakeselectronics

    jakeselectronics Member

    Joined:
    May 2, 2009
    Messages:
    401
    Likes:
    4
    Location:
    Macedon Ranges, Australia
    No, Thank you for teaching me something I didn't know before.
     
  3. Wp100

    Wp100 Active Member

    Joined:
    Feb 3, 2009
    Messages:
    960
    Likes:
    43
    Location:
    England

    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.
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. Mike - K8LH

    Mike - K8LH Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    3,637
    Likes:
    109
    Location:
    Michigan, USA

    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
     

Share This Page