Hello,
I am trying to read a a register from the LMH0030. After writing the adress and toggle the ACLK PIN the LMH0030 should drive 0b10 in pins 9:8. However, I get always 0b00. Maybe the problem is in the initialization of the bus.
Could you write for me the code to initialize the port?
My code is:
// Initialization
output_toggle(ACLK_LMH0030);
output_toggle(ACLK_LMH0030);
output_toggle(ACLK_LMH0030);
output_low(ACLK_LMH0030);
// Read operation
output_low(ANC_CTRL_LMH0030);
output_high(RD_WR_LMH0030);
// Address
output_low(AD9_LMH0030);
output_low(AD8_LMH0030);
output_low(AD7_LMH0030);
output_low(AD6_LMH0030);
output_low(AD5_LMH0030);
output_low(AD4_LMH0030);
output_low(AD3_LMH0030);
output_low(AD2_LMH0030);
output_low(AD1_LMH0030);
output_high(AD0_LMH0030);
// Toggle the ACLK
output_high(ACLK_LMH0030);
// Now I should get a '1'
control_9 = input( AD9_LMH0030 );
Thanks and regards,
Félix.