Bitbash UART on LPC8N04

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bitbash UART on LPC8N04

1,440 Views
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.

Tags (1)
0 Kudos
Reply
4 Replies

1,365 Views
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 Kudos
Reply

1,418 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @brentsinger 

Sorry there isn't USART module on LPC8N04.

 

BR

Alice

0 Kudos
Reply

1,405 Views
brentsinger
Contributor I

Yes I read that.

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

0 Kudos
Reply

1,375 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @brentsinger 

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

 

BR

Alice

0 Kudos
Reply