14-03-2019, 09:02 AM
Studying the code I learned a lot so far, and I now understand some of the modulator code lines.
A lot of the I2C intricacies are still obscure to me, but since Frank has this working perfectly, there is no need for me to get into that. I just enjoy the working as it is.
Since the vision modulator does not require the software switching-off possibility for my applications, I removed that part from the code.
The following now remains:
RF_CF_DATA_SEND(4) <= RF_CF_DATA(4);
RF_CF_DATA_SEND(3) (15 downto 7) <= RF_CF_DATA(3) (15 downto 7);
RF_CF_DATA_SEND(3) (6) <= V_RF_ON_DATA; -- turn off video rf oscillator
RF_CF_DATA_SEND(3) (5) <= V_RF_ON_DATA; -- turn off video rf modulator
RF_CF_DATA_SEND(3) (4 downto 0) <= RF_CF_DATA(1) (4 downto 0);
RF_CF_DATA_SEND(2) <= RF_CF_DATA(2);
RF_CF_DATA_SEND(1) (15 downto 7) <= RF_CF_DATA(1) (15 downto 7);
if RF_CF_DATA(1) (6) = '0' and RF_CF_DATA(1) (5) = '0' and A_RF_ON_DATA = '0' then
RF_CF_DATA_SEND(1) (6) <= '0'; -- turn on audio rf modulator
RF_CF_DATA_SEND(1) (5) <= '0'; -- turn on audio rf modulator
else
RF_CF_DATA_SEND(1) (6) <= '1'; -- turn off audio rf oscillator
RF_CF_DATA_SEND(1) (5) <= '1'; -- turn off audio rf modulator
end if;
RF_CF_DATA_SEND(1) (4 downto 0) <= RF_CF_DATA(1) (4 downto 0);
Thanks again for your help Frank!
Jac
A lot of the I2C intricacies are still obscure to me, but since Frank has this working perfectly, there is no need for me to get into that. I just enjoy the working as it is.
Since the vision modulator does not require the software switching-off possibility for my applications, I removed that part from the code.
The following now remains:
RF_CF_DATA_SEND(4) <= RF_CF_DATA(4);
RF_CF_DATA_SEND(3) (15 downto 7) <= RF_CF_DATA(3) (15 downto 7);
RF_CF_DATA_SEND(3) (6) <= V_RF_ON_DATA; -- turn off video rf oscillator
RF_CF_DATA_SEND(3) (5) <= V_RF_ON_DATA; -- turn off video rf modulator
RF_CF_DATA_SEND(3) (4 downto 0) <= RF_CF_DATA(1) (4 downto 0);
RF_CF_DATA_SEND(2) <= RF_CF_DATA(2);
RF_CF_DATA_SEND(1) (15 downto 7) <= RF_CF_DATA(1) (15 downto 7);
if RF_CF_DATA(1) (6) = '0' and RF_CF_DATA(1) (5) = '0' and A_RF_ON_DATA = '0' then
RF_CF_DATA_SEND(1) (6) <= '0'; -- turn on audio rf modulator
RF_CF_DATA_SEND(1) (5) <= '0'; -- turn on audio rf modulator
else
RF_CF_DATA_SEND(1) (6) <= '1'; -- turn off audio rf oscillator
RF_CF_DATA_SEND(1) (5) <= '1'; -- turn off audio rf modulator
end if;
RF_CF_DATA_SEND(1) (4 downto 0) <= RF_CF_DATA(1) (4 downto 0);
Thanks again for your help Frank!
Jac







