![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
Try straddling the PIC with C3. ie: connect C3 as close to pins 5 & 14 of the PIC as possible. As Philba mentioned, use an ohm meter to make sure pin 18 of the PIC is really connected to R2 and that R2's other end is really connected to 5V.
EDIT: I just looked at your code and noticed that w_temp and status_temp in the ISR are not saved in bank free memory. You should fix this so that w_temp and status_temp are in the 0x70-0x7F (bank free) range in case your main routine is interrupted while it is using banks other than 0.
__________________
--- The days of the digital watch are numbered. --- Last edited by kchriste; 13th August 2007 at 03:43 AM. |
|
|
|
|
|
|
(permalink) |
|
Code:
loop call Check_Keys ; has start/ stop been triggered goto loop ; Now wait for the next occurence. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Check_Keys btfsc PORTA, BUT ; is there an input (low) call Send_StartStop ; Yes send start/stop signal to display return ; No do nothing
__________________
L.Chung |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| odd project, 1 button adds a light 1 button takes a light away with sound. | KevinAlaska | Electronic Projects Design/Ideas/Reviews | 15 | 6th June 2007 04:38 AM |
| 1 Hour Timer PIC 16F628A (Set Button) | Suraj143 | Micro Controllers | 11 | 26th April 2007 03:54 AM |
| button midi keyboard | jjjjjj | General Electronics Chat | 2 | 20th March 2006 04:10 PM |
| Push Button On/Off power to PIC | eblc1388 | Micro Controllers | 8 | 17th February 2006 01:31 PM |