Test 6. Morse code: PIC generated with PWM
Generating the word PIC in Morse code using PWM module. Generating acoustic signal with PWM was described in previous test.
Routine del contains nested loop. Two general purpose registers l2 and l3 are decremented. l2 is first cleared and then is decremented in the inner loop with instruction decfsz (decrement f, skip if zero). The loop is executed 256 times. It takes time of 1.024 ms (256 x 4 x 1us).