Im not sure of your rules about live links, but over at this site: http://elm-chan.org/works/akilcd...
I found some audio spectrum monitor code for the LCD display.
Im not going to use an LCD though, im just going to output the bargraph data through the uart to a custom display controller that i'm making.
the issue is, im not sure how the "lvlbuff" SRAM is mapped out. If someone is experianced in this code, can someone explain this in some more detail?
"quote from ASM"
rfsh_bars: ;Draw spectrum bars
sbrc _Flags, 1 ;Skip refresh if in pause.
ldi DL, LCD_H-8+1 ; (This routine refreshes LCD with bar length
ldiw B, 0 ; list on the LvlBuf. 1st value is DC
rcall lcd_setadr ; component, 2nd value is fundamental freq
rcall ds_hl ; and last value is highest freq)
it says that lvlbuff is a list of some sort, but im not really clear on how its mapped out.