Is there a way to switch between applications based on the state of a digital switch input ?

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

Is there a way to switch between applications based on the state of a digital switch input ?

284 次查看
johngreenjets
Contributor III

I am using the UCANS32K146 development board to read UART and then transmit that data in CAN messages.

I have had to develop two different applications, because there are two versions of UART packets sent by the devices sending the UART data

I was hoping to use a switch on a digital input that selects which application is used when the UCANS32K146 is powered up/reset.

Is there a way to switch between applications based on the state of a digital switch input ?

The reason for having two applications is shown below.  Differences include the number of UART bytes, the data and datatypes within the UART packet and the packing of the UART data into CAN messages.

Application 1 reads and processes 10 bytes or UART data...

johngreenjets_2-1746781048153.png

 

 

Application 2 reads and processes 22 bytes or UART data...

johngreenjets_3-1746781086776.png

 

 

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