Depending your osc frequency (wich you should define at the top of your code) this shoud produce the freq sweep from 11 to 41KHz
Code:Freq var Byte Duration var Word Start: For Freq=45 to 16 step -1 For duration = 0 to 10000 High PORTB.1 PAUSEUS Freq LOW PORTB.1 PAUSEUS Freq NEXT NEXT GOTO Start
Bookmarks