

KarinaValenciaAguilar May 28, 2013 7:45 AM (in response to Karina Valencia Aguilar)
From Kane:
Hi, I have some questions regarding IPU.
- 1. Are the counters mapped to specific pins like DRDY, HSYNC and VSYNC?If yes how this mapping is done? There is some mapping given for asynchronous case but it is also very unclear.
[Kane] counters can be used to create synchronous signals such as DRDY,HSYNC and VSYNC. But there is not fixed mapping here. You can use any one of the counter 1 ~counter 8 to create hsync as you like. Then you need to indicate which counter represents the hsync in other register. For example:ipu_write_field(1,IPU_DI0_SYNC_AS_GEN__DI0_VSYNC_SEL, 0x2); //PIN3 as VSYNC ipu_write_field(1,IPU_DI0_GENERAL__DI0_DISP_Y_SEL,0x1);//PIN2 as HSYNCFor DRDY, since it is a data oriented signal, we need to create a timing widow to fetch data from memory through DC, DMFC, idmac and also need to create a waveform for output pin . The data window can be created using one of counter1~10,for example counter 5. And Normally we use PIN15 to indicate the DRDY waveform. So there are two places you need to configure in NEW_DATA microcode event. One is the sync, you need to configure to counter 5. The other is the waveform. DI holds 12 sets of waveforms and you can select one of it.For how to create the DRDY waveform and also for asynchronous case, please refer to chapter 46.5.11.4 of the RM.
- 2. In template micrcode memory in SYNC field what does unit# stands for in Sync with unit #1 etc? Do they associate with counters?
[Kane]yes. they are associated with the counters. So #1 means the data associated with this command should be synchronized to counter0. If #10, the data should be synchronized to counter10.