hardware design v2.00

Table Of Contents
Smart Machine Smart Decision
Figure 37: Reference circuit of NETLIGHT
4.14 General Purpose Input/Output (GPIO)
SIM908 provides up to 6 GPIO pins. The output voltage level of the GPIO can be set by the AT command “AT+
SGPIO”. The input voltage level of the GPIO can also be read by the AT command “AT+ SGPIO”. For more
details, please refer to document [1].
Table 18: Pin definition of the GPIO interface
Pin name Pin number Default function Second function Default state
GPIO1/ KBR0 31 GPIO1 KBR0 Output, pull down
GPIO2/ KBR1 32 GPIO2 KBR1 Output, pull down
GPIO3/ KBR2 33 GPIO3 KBR2 Output, pull down
GPIO4/ KBC0 34 GPIO4 KBC0 Output, pull down
GPIO5/ KBC1 35 GPIO5 KBC1 Output, pull down
GPIO6/ KBC2 36 GPIO6 KBC2 Output, pull down
4.15 PWM
SIM908 provides 3 PWMs which can be used to drive a vibrator, and a backlight LED for display or keyboard.
Each PWM1 and PWM2 output frequency varies from 25.6KHz to 3.25MHz.Two 7-bit unsigned binary
parameters are used for the output period and for the duty cycle. The PWM3 for the buzzer outputs a square wave
at the desired tone frequency. The tone frequencies are programmable from 200 Hz to 5 kHz and can be
re-programmed on-the-fly to generate monophonic audio ring tones or alert tones. The tone level can be adjusted
over a 24 dB range in 4 dB steps, or it can be muted.
The AT command “AT + SPWM” is used to set the output period and duty cycle of the PWM. For details, please
refer to document [1].
4.16 I
2
C Bus
The SIM908 provides an I
2
C interface which is only used in the embedded AT application.
SIM908_Hardware Design_V2.00 2012.05.07
39
Note: This function is not supported in the standard firmware. If user wants this function, the firmware must be customized.
Please contact SIMCom for more details.