Software UART Sample code

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Software UART Sample code

2,162件の閲覧回数
Pradhan
Contributor I

Hi

 

I am new to S08 freescale controller and for one of our applicaton, I have to develope software UART. Can any1 help me by sharing the software UART code. Its urgent.

 

I am using the MC9S08SG8 controller.

 

Please help....

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

1,239件の閲覧回数
bigmac
Specialist III

Hello, and welcome to the forum.

 

You might download Application Note AN2502, which described a software UART that made use of the TIM timer module within a previous HC908 device family.  The assembly code presented may require some adaption to suit the TPM module of the newer MC9S08 device family.

 

I assume that the software UART is required because your project needs two UARTs?

 

Regards,

Mac

 

0 件の賞賛
返信

1,239件の閲覧回数
egoodii
Senior Contributor III

Are you interested in half-duplex (one timer) or full (two)?

0 件の賞賛
返信

1,239件の閲覧回数
egoodii
Senior Contributor III

I have some well-proven code for 'timer banged' UART(s), but can't get it 'til Tuesday.  It is based on the Freescale ApNotes.

0 件の賞賛
返信