Hello. I want to build a audio spectrum analyzer using this chip. The picture below is from datasheet:

Name:  DMESG7.jpg
Views: 1677
Size:  71.6 KB

Below is the sample code I've created for reading the chip:

Code:
'INIT

HIGH RESET 
HIGH STROBE 
PAUSEUS 18 
LOW STROBE
PAUSEUS 18
LOW RESET
HIGH STROBE
PAUSEUS 18

'READING

LOW STROBE
ADCIN 1, VALUE
BAND=1
GOSUB DISPLAY
PAUSEUS 18
HIGH STROBE
PAUSEUS 18

LOW STROBE
ADCIN 1, VALUE
BAND=2
GOSUB DISPLAY
PAUSEUS 18
HIGH STROBE
PAUSEUS 18

LOW STROBE
ADCIN 1, VALUE
BAND=3
GOSUB DISPLAY
PAUSEUS 18
HIGH STROBE
PAUSEUS 18
To simplify the things, code above reads only data for 3 frequencies, full code will read 7 frequencies, then repeat in loop. Is above code correct, how do you think?