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
 
LinkBack Thread Tools Display Modes
Old 14th January 2008, 09:46 PM   (permalink)
Default

And just for the record, the tx pin DOES have to be set as an input!!!
__________________
life\'s a bitch then u marry one. )
cyprio7 is offline  
Old 15th January 2008, 07:03 PM   (permalink)
Default

I've figured out the problem!! By accident! I've constructed this circuit on breadboard by the way. In my code, when rb6 (or 4 cant remember) goes high due to user input, the message is transmitted.

Because the message is transmitted so fast, once it has finished, the user is still actually holding down the button, although it only feels like you've only done one "click" of the button which seems to us as a fraction of a second.

I noticed this because I had a wire coming out from rb6, and i noticed whenever i touched it with my fingers, it would display

santasantasantasantasantasantasantasantasantasanta santasanta

due to the pin going high, im guessing the electricity from my own body?? Is this possible? This actually was happening though, when I let go, i noticed it stopped. Maybe it could have been some built up charge in the breadboard or something?? Who knows..


To over come this, i inserted a delay routine into my code, so that when the user presses a button, the message is sent, then a delay is called, to give the user a chance to "let go of" the button, or else the message will be written again.
__________________
life\'s a bitch then u marry one. )
cyprio7 is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Quik PIC Programming kit Krumlink General Electronics Chat 5 28th January 2008 12:27 AM
Problems switchin relay with PIC Andy1845c General Electronics Chat 5 17th November 2007 07:14 PM
High ADC sampling rate PIC, 18F needed? bananasiong Micro Controllers 24 28th October 2007 01:13 PM
PIC16F88, PIC simulator lcd trouble superbrew Micro Controllers 11 17th October 2007 03:18 AM
Programming PIC to generate square wave elec123 Micro Controllers 11 13th October 2007 02:15 PM



All times are GMT. The time now is 05:35 PM.


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

eXTReMe Tracker