N9600 would work IF AND ONLY IF the internal OSC is accurate enough.
High likely i would use DEBUG instead, much more, i would use HSEROUT and a max232, max233 or whatever else RS232 driver.
You can reduce the in serie resistor if you want.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Dave
Always wear safety glasses while programming.
AND as you use the bit banging solution, you should make sure your Serial pin idle to the right level before sending any data.
true idle high
Inverted idle low.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I am using a 16F690 which has an USART, cool, but all pins are used, not cool... I can use RA5 before the program uses it for communicating with another pic.
Using Hserout would be nice and adding an external osc too but I don't have the pins available for that.
Well, so I am confused.
The only pin I have is RA5, what should I do...
Use SEROUT, right?
And use a max232 (in this case what benefit to I have if the pic is already outputing RSR232 level signal?).
Whith what setting for SEROUT if not N9200?
And can I or can I not use an external OSC?
Re-design your project.
Or DEBUG or SEROUT2Use SEROUT, right?
In your case there is not a benefit. If you were sending a longer distance or using HSEROUT then you would need it.And use a max232 (in this case what benefit to I have if the pic is already outputing RSR232 level signal?).
SEROUT -- N9600Whith what setting for SEROUT if not N9200?
SEROUT2 ---16468
DEBUGE --- DEFINE DEBUG_MODE 1
If you mean internal...Maybe.And can I or can I not use an external OSC?
Temperature change can cause the internal to vary. It may work on the bench but not in a finished application.
Dave
Always wear safety glasses while programming.
The project is still my lasergame equipment.
When the "body" module is powered up, it will send 70 bytes to the PC (scores).
It will not have the time to heat too much do you think I still can use internal OSC at 8MHz, without a MAX232, with serout, N9600, a 1k inline resistor between pic RA5 and PC pin 2? Redesigning the project is unfortunately almost impossible now.
All I can say is to give it a try. Maybe in your case it will not be to much of a problem if communications do not work every time. Just try sending the score again??
The MAX232 will not help you.
If you find it works part of the time, you may try 2400 baud. Sometimes a slower signal is more reliable and more tolerant.
I am not sure, the internal on your chip might be able to be calibrated. Some one else will have to help you if it can or needs to be.
Dave
Always wear safety glasses while programming.
Bookmarks