CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Pic16F628 problem when Oscilloscope disconnected

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Stanley



Joined: 09 Jan 2004
Posts: 4

View user's profile Send private message

Pic16F628 problem when Oscilloscope disconnected
PostPosted: Fri Jan 09, 2004 2:27 pm     Reply with quote

Hi.
Have a strange problem whit my Pic16F628 communicating on 9600 8N1 whit a mobile phone running at 3.6V.

When I have the oscilloscope connected to the clock out everything is working find but when I disconnect the scope I only receve garbage from the phone. Anyone know what could be wrong??

Settings:

#use delay(clock=4000000)
#fuses NOWDT,INTRC, PUT, PROTECT, NOBROWNOUT, MCLR, NOLVP, NOCPD

#use rs232(baud=9600,xmit=PIN_B6,rcv=PIN_B7, stream=PHONE) // For communication to phone. Use Software

setup_counters(RTCC_INTERNAL,RTCC_DIV_1);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_comparator(NC_NC_NC_NC);
setup_vref(FALSE);
Adrianf



Joined: 02 Oct 2003
Posts: 2
Location: North Wales (UK)

View user's profile Send private message MSN Messenger

Re. Pic16F628 problem when Oscilloscope disconnected
PostPosted: Fri Jan 09, 2004 2:56 pm     Reply with quote

Just a guess but mobiles give off a fair bit of RF. Have you tried a capacitor of a similar value to the scope probe on the same pin to ground? Might give you a pointer. I've had circuits do similar where the scope has damped out oscillations.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jan 09, 2004 3:17 pm     Reply with quote

My first thought was a missing ground connection or the MCLR
pin was left unconnected. Upon researching it, I found this
post at Microchip, which yes, does end up being a messed up
MCLR circuit. Check that first.
http://forum.microchip.com/tm.asp?m=18330
Stanley



Joined: 09 Jan 2004
Posts: 4

View user's profile Send private message

PostPosted: Mon Jan 12, 2004 4:06 am     Reply with quote

Thanks for the replay.
I found out that my scope have an input at 1Mohm and 22pf Smile

-Stan.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group