This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F2800157: LIN Model Slave Node Question

Part Number: TMS320F2800157

Hello sir

I have a question about the LIN module:

1 : Environments:

    1 ) PC LIN Master Node

    2 ) TMS320F2800157     LIN Slave Node

    3 ) PIN5   LIN enable

         PIN2   LIN-TX

         PIN1   LIN-RX

2 : Code 

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
1)Macor
#define GPIO_PIN_LINA_RX 29
#define myLIN0_LINRX_GPIO 29
#define myLIN0_LINRX_PIN_CONFIG GPIO_29_LINA_RX
//
// LINA_TX - GPIO Settings
//
#define GPIO_PIN_LINA_TX 28
#define myLIN0_LINTX_GPIO 28
#define myLIN0_LINTX_PIN_CONFIG GPIO_28_LINA_TX
#define myGPIO0 242
#define myGPIO0_GPIO_PIN_CONFIG GPIO_242_GPIO242
2 ) Init -SYSCLK 120M
// GPIO242 -> myGPIO0 Pinmux
GPIO_setPinConfig(GPIO_242_GPIO242);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

3:Results of the current run

my LIN Schedule Table

my Exception Result

IC Receive  02 -03 02 03 04 05 06 07 08  -20ms

IC Transmit 03- 11 34 56 78 9A AB CD EF-10ms

IC Transmit 04 - AA AA AA AA AA AA AA AA-90ms

my Actual Result

Q1 : Based on Head 0x03 and 0x04 reply Message, the actual result is Head 0x04 followed by Message error,Head 0x16 followed by 0x04 want to send Message, what is the way to solve it?

Q2: How can the code configuration be modified to implement the function of sending and receiving LIN data with a single interrupt?