REG flag in CHO Instructions

Hardware questions and issues with the FV-1

Moderator: frank

Post Reply
mweavers
Posts: 15
Joined: Sun May 19, 2013 6:22 pm

REG flag in CHO Instructions

Post by mweavers »

Hi Frank,
I'm trying to figure out when the CHO instructions stop using the internal register (REG flag) and revert to using the "live" LFO value. Application note AN-0001 (page 4) shows that once the REG flag is used, several subsequent CHO instructions continue to use the captured LFO value in this register without having to send the REG flag again. At what point do CHO instructions go back to reading directly from the LFO instead of the internal register? Thanks in advance.
frank
Posts: 1244
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Re: REG flag in CHO Instructions

Post by frank »

Simple answer, never.

The value in the register will stay there until you do a new REG so if you want a "live" value then just do a REG.
Frank Thomson
Experimental Noize
mweavers
Posts: 15
Joined: Sun May 19, 2013 6:22 pm

Re: REG flag in CHO Instructions

Post by mweavers »

Ah, that clarifies it, thank you. I'm guessing that applies to CHO RDA and CHO SOF, but CHO RDAL simply gives the live value all the time regardless?
frank
Posts: 1244
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Re: REG flag in CHO Instructions

Post by frank »

Correct, CHO RDAL just give the current value of the selected LFO so if you read it multiple times in a program you may or may not get the same value. All LFOs are updated once per sample period but at different times for each LFO and their associated SIN and COS registers.
Frank Thomson
Experimental Noize
Post Reply