Bitbash UART on LPC8N04

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Bitbash UART on LPC8N04

1,439 次查看
brentsinger
Contributor I

Hi, just wanted to see if anyone has a good uart bitbash snippet I could re-use?

Target is LPC8N04, desired baud is 460080. Would be used for Modbus, so messages can get long.

If anyone can point to a good project that is relevant that'd be great too before I get started.

标记 (1)
0 项奖励
回复
4 回复数

1,364 次查看
frank_m
Senior Contributor III

TI used to have so-called "software implementations" for UART and I2C for their MCUs, which use "bit-banging".
Porting this code from one Cortex M to another is not really difficult.

> Target is LPC8N04, desired baud is 460080.

Though this is far too optimistic for a M0+.

I guess you are talking about Modbus RTU.
The only challenge is the inter-message gap, the rest of the protocol is mostly standard UART.
There are plenty of free Modbus implementations, perhaps you can draw inspirations from them, or consider porting one of them.

0 项奖励
回复

1,417 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @brentsinger 

Sorry there isn't USART module on LPC8N04.

 

BR

Alice

0 项奖励
回复

1,404 次查看
brentsinger
Contributor I

Yes I read that.

Which is why I'm going to Bit Bang a uart into it. 

0 项奖励
回复

1,374 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @brentsinger 

Sorry, as far as I know, there isn't.

 

BR

Alice

0 项奖励
回复