hi all~
I Use AM335x CPU.
I Want to change ADC FIFO Size.
Its size is now 0~127(128) .
(AM335x TRM Rev.J 1579 Page. - 12.5.1.57 - 100h FIFO0DATA( or 200h FIFO1DATA))
But I need only 1 FIFO size.
Because I need to read current value.
Is It Possible??
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.
hi all~
I Use AM335x CPU.
I Want to change ADC FIFO Size.
Its size is now 0~127(128) .
(AM335x TRM Rev.J 1579 Page. - 12.5.1.57 - 100h FIFO0DATA( or 200h FIFO1DATA))
But I need only 1 FIFO size.
Because I need to read current value.
Is It Possible??
This is programmed in the FIFO0THRESHOLD and FIFO1THRESHOLD registers. The FIFO in which data will be stored is selected by bit 26 (FIFO_select) in the STEPCONFIGx register.
thanks reply~
refer 12.5.1.52 - (Program the desired FIFO0 data sample level to reach before
generating interrupt to CPU (program to value minus 1))
I want 1 FIFO Size , therefore 1-1 = 0,
Default vale of [5-0] FIFO0_threesold_Level is 0(Zero)
But FIFO Operate size 128..
Is This Register(FIFOxTHRESOLD) for Interrupt generation ?
The FIFO size is not programmable. However, in addition to Biser's suggestion, you can poll the FIFO0COUNT or FIFO1COUNT register to see that your one result is in the FIFO before reading the FIFO0DATA or FIFO1DATA registers.
-Tyler