LPC804 USART in Master Synchronous mode always add a stop bit to transmission

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

LPC804 USART in Master Synchronous mode always add a stop bit to transmission

413 次查看
xs_graziano
Contributor I

Hello,

I'm using the USART in an LPC804 as Synchronous Master, sending data packets to a slave, but for every byte (8 bit long), seems the LPC add 1 stop bit.

 

As an example, on an 32 bit data I count 36 clock bits.

The configuration is 8 data bit, 1 stop (the choice is between 1 and 2 stops bit), no parity.

In the middle of the 9th bit there is a clock front, so it doesn't seem to be just an idle time.

Anyone was able to use this device properly?

There is any way to disable this stop bit to be added to communication?

 

Many thanks for any help or comment

0 项奖励
回复
3 回复数

372 次查看
xs_graziano
Contributor I

Hi @Pablos_Ramos,

Thank you for your answer. So, if I right understand, there is no way to use the USART in Synchronous mode without start and stop bit for every byte.

It seems this way also in the datasheet, where there is a 'Start bit' before the first bit is transmitted... I haven't notice it before...

So, the only way to manage a Synchronous Serial Transmission with just 8 bit for every byte (without start and stop) is to use the SPI module, is that right?

Thank you for your support

0 项奖励
回复

362 次查看
Pablo_Ramos
NXP Employee
NXP Employee

Hi @xs_graziano,

To manage synchronous serial transmission with 8-bit data and no start/stop bits on the LPC804, you can use the SPI peripheral. Alternatively, you could implement the transmission manually using GPIOs.

Best Regards,
Pablo

0 项奖励
回复

381 次查看
Pablo_Ramos
NXP Employee
NXP Employee

Hi @xs_graziano,

The USART module on the LPC804 is designed to transmit only 7, 8, or 9 data bits per frame. It does not support sending data without framing.

The only way to transmit a frame with more bits than this would be to implement a custom protocol manually using GPIOs.

Best Regards,
Pablo

0 项奖励
回复