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

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

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

276 Views
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

 

 

Tags (1)
0 Kudos
Reply
0 Replies