usart parameters and controls

Post your requests and ideas on the future development of mikroPascal.
Post Reply
Author
Message
showtime
Posts: 2
Joined: 25 Oct 2005 21:47

usart parameters and controls

#1 Post by showtime » 25 Oct 2005 22:04

i'm newbie in micropascal.
Micropascal is very impressive compiler. We can succeed everything with it.
I have seen messages about usart in this forum.

I would like to have a usart command which is support:
-parity setting and control
-stop bit setting
-wait and waitstr
-timeout control routine

Micropascal includes very very complex commands. I think these addinitional parameters will be completed easily by engineers. These paramaters and controls i have explained are essential varios projects and to communicate with systems which protocols are different and not changable. Also as you know comm controls are very important for reliable projects.
(i'm sorry for my english)
Thank you for considering.

Best regards
Ahmet

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: usart parameters and controls

#2 Post by zristic » 26 Oct 2005 09:12

Parity and stopbit are not implemented in PIC's hardware usart module. Therefore, not much support for it... As for timings and waitings, something can be worked out. You just have to specify what exactly you need.

ncc1502
Posts: 33
Joined: 23 Mar 2008 23:41

#3 Post by ncc1502 » 04 May 2008 16:26

In some pics (like Pic16F877A) with hardware usart there are 9 bits.

This means that there is a possibility for:
- 8 bits and 1 parity bit
- 8 bits and 2 stop bits

JPC has written some impressive code for is on this forum: http://www.mikroe.com/forum/viewtopic.php?t=4886

So it is possible to make these functions by software, why not create a library with these functions, i think it should be
easy for the MP compiler to determine wether the chosen Pic supports these extended functions or not (and give error).
Better safe than sorry

Post Reply

Return to “mikroPascal Wish List”