Tool/software:
Hi im trying read pwm from pin number 0 below i written the code im unable Update the data in read variable. is it correct method anything i need to add. please solve my query.
quicker response is appreciated. thankyou
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
L06 ECNT { next=L07,reqnum=2,request=GENREQ,pin=0,event=RISE,reg=B,data=2000};
L07 MOV32 { remote=L06,type=IMTOREG&REM,reg=B,hr_data=INIT_HR_DELAY};
; Looping
L07 BR { next=L00, cond_addr=L00, event=NOCOND }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
SAMPLE_SIZE=1;
htuRAM1 ->DCP[2].ITCOUNT = 0x00010000 + SAMPLE_SIZE;
htuRAM1 ->DCP[2].IHADDRCT = (htuRAM1 ->DCP[2].IHADDRCT & 0x0) |
0x0 << 23 | // DIR
0x0 << 22 | // SIZE
0x0 << 21 | // ADDMH
0x0 << 20 | // ADDFM
0x0 << 18 | // TMBA
0x1 << 16 | // TMBB
0x78 << 0; // IHADDR
htuRAM1 ->DCP[2].IFADDRB = (unsigned int)&HET_Read_data;
htuREG1 ->CPENA = 0x00000025;//3 requests im using so i enable