EM1202, EM1202W, and EM1202N Platforms
Hardware devices covered by this platform
- EM1202 programmable IoT module (optionally, with GA1000 or WA2000 add-on device).
- Other devices incorporating the EM1202 module.
This section covers three separate platforms:
- EM1202 — does not support any wireless modules.
- EM1202W — supports the GA1000 Wi-Fi add-on.
- EM1202N — provides limited support for the WA2000 add-on (Wi-Fi only; BLE not supported).
Memory space and key info
RAM |
22,271 bytes for application variables and data |
Flash |
983,040 bytes for application and data storage (shared flash memory)* |
EEPROM |
2040 bytes for application data |
* Some earlier devices had only 458,752 bytes of flash memory available
TiOS firmware version |
[V3.7x] |
16-bit platform |
|
Clock frequency (CLOCK) and clock control |
PLL on (def): 88.4736Mhz, PLL off: 11.0592Mhz |
Available network interfaces |
EM1202: Ethernet (net.) , PPP (ppp.), PPPoE (pppoe.)(1) EM1202W: Ethernet (net.), Wi-Fi (wln.) , PPP (ppp.), PPPoE (pppoe.)(1) |
Unidirectional(2) |
|
UART limitations |
Max practical baudrate ~921600 |
16 byte for TX, 16 bytes for RX |
|
Depends on the serial port mode |
|
Independent |
|
Supported(3) |
|
ADC |
NO |
Pulse-width Modulation (PWM) |
NO |
GA1000 support |
YES |
WA2000 support |
Supports Wi-Fi, BLE is not supported |
Supported |
|
Beep.divider calculation |
beep.divider=CLOCK / (2 * desired_frq) |
Recommended buzzer frequency divider |
Depends on the attached buzzer |
Type selection and line remapping supported |
|
28 bytes for MAC and device password storage |
|
128 bytes: 64 OTP bytes + 64 fixed bytes(4) |
|
Shared |
|
Self-upgrades for the Tibbo-BASIC/C app. |
Supported through fd.copyfirmware, fd.copyfirmwarelzo, and fd.copyfirmwarefromfile methods |
Green status (SG) LED control line Red status (SR) LED control line Yellow Ethernet status (EY) LED control line Green Ethernet status (EG) LED control line |
|
Ethernet / UDP Broadcast transport Ethernet /WinPCap transport |
Comments:
- The sock.allowedinterfaces property refers to the Ethernet interface as "NET", Wi-Fi — as "WLN", PPP — as "PPP", and PPPoE — as "PPPOE". Sock.targetinterface and sock.currentinterface properties rely on the pl_sock_interfaces enum, whose members differ depending on the platform.
- Surrounding hardware may dictate which GPIO lines must be used as inputs and which — as outputs.
- Default CTS/RTS mapping is different for each serial port:
|
RTS |
CTS |
Port 1 |
||
Port 2 |
||
Port 3 |
||
Port 4 |
- Older EM1202 and EM1202W devices did not contain the serial number. To find out if your EM1202(W) has the serial number onboard, try to read this serial number with the sys.serialnum R/O property. If this property returns an empty string, then the serial number is not present. Sys.serialnum returns all 128 bytes of the serial number. First 64 bytes are one-time-programmable (OTP) with the sys.setserialnum method.
Supported Objects, variable types, and functions
- Sock — socket communications (up to 16 UDP, TCP, and HTTP sessions);
- Net — controls the Ethernet port;
- Wln — handles the Wi-Fi interface (only available on EM1000W and EM1000N platforms, requires GA1000 or WA2000 add-on devices respectively);
- Ser — in charge of serial ports (UART, Wiegand, and clock/data modes);
- Ssi — implements up to four serial synchronous interface (SSI) channels, supports SPI, I2C, clock/data, etc.;
- Io — handles I/O lines, ports, and interrupts;
- Lcd — controls graphical display panels (several types supported);
- Kp — scans keypads of matrix and "binary" types;
- Fd — manages flash memory file system and direct sector access;
- Stor — provides access to the EEPROM;
- Romfile — facilitates access to resource files (fixed data);
- Pppoe — provides access to the Internet over an ADSL modem;
- Ppp — provides access to the Internet over a serial modem (GPRS, POTS, etc.);
- Pat — "plays" patterns on up to five LED pairs;
- Beep — generates buzzer patterns;
- Button — monitors the MD line (setup button);
- Sys — in charge of general device functionality.
These platforms support the standard set of variable types and functions (a.k.a. "syscalls").
Platform-specific constants
You can find them here.