Other Parts Discussed in Thread: HALCOGEN
Normal 0 MicrosoftInternetExplorer4Hello,
I am trying to configure SCI/LIN 1 to use DMA... but still can't get it to work. I followed the steps provided by the MIBSPI example I found on the forum..
I started by setting up the SCI port as following
1. Enable transmit/ receive
2. Set pins to be used for SCI
3. Disabled all interrupts
4. Enabled RX and TX DMA
5. Started the SCI module.
I then configured the DMA as Following
1. Reset DMA,
2. Enable DMA.
3. Set debug mode to 3
4. Configured channel Packet 1 with 1 Frame with 1 Element... 0 for Frame and Element offsets, read and write element sizes = 32bit, transfer type = frame, no auto init, and read/ write from/to fixed addresses.
5. Assigned PortB to Channel 1. in PAR0
6. Assigned DMA request to Channel 1in REQASI0
7. Bypassed the FIFO buffer
6. Enabled Hardware triggering for channel 1, in HWCHENAS.
OK... this didn't work,
I tried to use Software DMA requests to Channel 1 and that worked fine... so I think somehow when SCI receives a byte it is not triggering the DMA request.