Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 13th August 2007, 03:26 AM   (permalink)
Default

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.
kchriste is offline   Reply With Quote
Old 13th August 2007, 07:42 AM   (permalink)
Default

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
The "btfsc PORTA, BUT" in the code should be btfss.
__________________
L.Chung
eblc1388 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
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



All times are GMT. The time now is 02:10 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.