Programming Reference

Commands

Storage: 170 seconds of audio at 12kHz sampling rate
Ports Available: P1, P2, P3, and P6
Total number of I/O: 16
PWM Outputs Available: 4 (out of 12 total) - PWM outputs use port P3
Audio Output: PWM and DAC


Special Notes:

If you select the SNC21340 device name for your program, you have the option of using PWM or DAC for the
audio output. Specify the audio output type in the program by using the PPDAC command for PWM output or
the DAC command for DAC output. Failure to specify audio output type in the program will result in an error
message.

Storage: 100 seconds of audio at 12kHz sampling rate
Ports Available: P1, P2, P3, and P6
Total number of I/O: 16
PWM Outputs Available: 4 (out of 12 total) - PWM outputs use port P3
Audio Output: PWM and DAC


Special Notes:

If you select the SNC21200 device name for your program, you have the option of using PWM or DAC for the
audio output. Specify the audio output type in the program by using the PPDAC command for PWM output or
the DAC command for DAC output. Failure to specify audio output type in the program will result in an error
message.

Storage: 134 seconds of audio at 12kHz sampling rate
Ports Available: P1, P2, P3, and P6
Total number of I/O: 16
PWM Outputs Available: 4 (out of 12 total) - PWM outputs use port P3
Audio Output: PWM and DAC


Special Notes:

If you select the SNC21268 device name for your program, you have the option of using PWM or DAC for the
audio output. Specify the audio output type in the program by using the PPDAC command for PWM output or
the DAC command for DAC output. Failure to specify audio output type in the program will result in an error
message.

Storage: 60 seconds of audio at 12kHz sampling rate
Ports Available: P1, P2, P3, and P6
Total number of I/O: 16
PWM Outputs Available: 4 (out of 12 total) - PWM outputs use port P3
Audio Output: PWM and DAC


Special Notes:

If you select the SNC21120 device name for your program, you have the option of using PWM or DAC for the
audio output. Specify the audio output type in the program by using the PPDAC command for PWM output or
the DAC command for DAC output. Failure to specify audio output type in the program will result in an error
message.

Storage: 42.5 seconds of audio at 12kHz sampling rate
Ports Available: P1, P2, and P3
Total number of I/O: 12
PWM Outputs Available: 4 (out of 12 total) - PWM outputs use port P3
Audio Output: PWM only


Special Notes:

If you select the SNC21085 device name for your program, the chip will automatically be configured for PWM output.
This device is PWM output only,  so specifying the audio output type in the program is not required. Accordingly, the
PPDAC and DAC commands are not supported, and if used will result in an error message.

Storage: 30 seconds of audio at 12kHz sampling rate
Ports Available: P1, P2, and P3
Total number of I/O: 12
PWM Outputs Available: 4 (out of 12 total) - PWM outputs use port P3
Audio Output: PWM only


Special Notes:

If you select the SNC21060 device name for your program, the chip will automatically be configured for PWM output.
This device is PWM output only,  so specifying the audio output type in the program is not required. Accordingly, the
PPDAC and DAC commands are not supported, and if used will result in an error message.

Storage: 15 seconds of audio at 12kHz sampling rate
Ports Available: P1, P2, and P3
Total number of I/O: 12
PWM Outputs Available: 4 (out of 12 total) - PWM outputs use port P3
Audio Output: DAC only


Special Notes:

If you select the SNC21031 device name for your program, the chip will automatically be configured for DAC output.
This device is DAC output only,  so specifying the audio output type in the program is not required. Accordingly, the
PPDAC and DAC commands are not supported, and if used will result in an error message.

This command loads a number into register Mi, where Mi is M0 - M15.
Mi registers are 4-bits wide and can store numbers from 0 to 15.
There are sixteen 4-bit registers.

8-bit registers can be implemented using Xi, where Xi is X0 - X7.
Xi registers are 8-bits wide and can store numbers from 0 to 255.
One 8-bit register uses up two 4-bit registers.
There is a maximum of eight 8-bit registers.

Code Example

Meaning

M2=10

Load the integer number 10 into 4-bit register M2.

M2=1010b

Load the binary number 1010 into 4-bit register M2.

M2=0Ah

Load the hex number A into 4-bit register M2.

X4=255

Load the integer number 255 into 8-bit register X4.

X4=11111111b

Load the binary number 11111111 into 8-bit register X4.

X4=0FFh

Load the hex number FF into 8-bit register X4.

 

Storage: 15 seconds of audio at 12kHz sampling rate
Ports Available: P1, P2, and P3
Total number of I/O: 12
PWM Outputs Available: 4 (out of 12 total) - PWM outputs use port P3
Audio Output: PWM only


Special Notes:

If you select the SNC21030 device name for your program, the chip will automatically be configured for PWM output.
This device is PWM output only,  so specifying the audio output type in the program is not required. Accordingly, the
PPDAC and DAC commands are not supported, and if used will result in an error message.