Mister_e Mind if I email you or ask a non related question here?
No problem.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
geckogrotto,
I'm actually trying to understand a little bit more about serial communication and making some tests on my side too.
I had to use a level converter (MAX232) to make the communication work.
Looking at some posts, I have understand you connected your PIC directly to the PC's serial port (= without converter)?
I must be wrong, no?
Roger
Originally Posted by flotulopex
Nope not wrong. I have pic output GPIO.0 connected to a 1K resistor then to serial pin 2 and GPIO.1 directly to serial pin 3. Serial pin 5 to ground.
Also have a 0.1uF from pin 1 to 8 of the PIC + and ground. Thats it using the last bit of code Mister_e posted and its working fine.
I should already be in bed now, I'm crashing now but if I can help I will tomorrow.
Ah!? (which means I'm very surprised!!!)
I thought it was mandatory to use a level converter to transmit data from a PIC to a PC and vice-versa.
I will try to connect my 12F675 as you did.
In fact, my first try was with a 16F88 having an AUSART module and it didn't worked whithout the level converter (but I didn't use a resistor neither - I'll have to try this too). Data where transferred but it was unreadable - fuzzy characters and RX counter on PC never stopped. Is this (module) making a difference?
Get "regenerated" first...
Thanks
Roger
Originally Posted by flotulopex
Let me know how it goes. I was getting weird chars at first but turned out my OSCAL was messed up. I believe you have to have
DEFINE OSCCAL_1K 1
ANSEL = 0 'disable ADCs
CMCON = 7 'disable comparator
in there for sure too.
OSCCAL is not valid for 16F88.
Even with ANSEL and CMCON set, I still get strange characters on the terminal's screen.
When I connect to my level converter, no problem.
I'm goint to try with my 12F675...
Roger
Bookmarks