You will first need to call XON MIC to enable usage of the microphone. After this you have to use MICSTART to start recording. You have to specify 3 arguments to use MICSTART...
SR - Sampling Rate. Determines quality of the recording.
NB - Number of Bits. Determines the size per sample. Also influences the quality.
NS - Number of Seconds. Determines how long you want to record.
Now, I'll explain the different options you have.
For sampling rate you can have either...
0: 8180Hz
1: 10910Hz
2: 16360Hz
3: 32730Hz
The bigger the number, the higher the quality, but it also limits how long you can record.
For the number of bits you have...
0: 8bit
1: 16bit
2: 8bit signed
3: 16bit signed
You shouldn't worry about the signed ones for now.
16bit will usually sound twice better than 8bit, but it halves your recording time.
Now, you have your recording time. You can specify either 0 to enter loop mode (continuous recording that gets overwritten) or a fixed number of seconds. How much you can record depends on sampling rate and number of bits...
Here are all the maximum times you can record using specific settings...
8180Hz - 8bit: 32s, 16bit: 16s
10910Hz - 8bit: 24s, 16bit: 12s
16360Hz - 8bit: 16s, 16bit: 8s
32730Hz - 8bit: 8s, 16bit: 4s
You can use MICSTART using this syntax...
MICSTART SR,NB,NS
You can stop it at any time with MICSTOP.
After recording is done, you can copy the mic data to an array using MICSAVE.