/* fc1178bc_blink.c * Simple LED blink for FirstChip FC1178BC * Author: Your Name * Date: 2026‑03‑26 */
/* Simple software loop – not accurate, just for demo */ while (ms--) for (volatile unsigned long i = 0; i < 1200; ++i) __asm__("nop"); firstchip fc1178bc link download
void main(void)
void delay_ms(unsigned int ms)
#define LED_PIN P1_0 // Example: Port 1, bit 0 /* fc1178bc_blink
| Tool | Purpose | |------|---------| | (Small Device C Compiler) | 8051 C compiler that can target the FC1178BC | | GDB + OpenOCD | Debugging via a compatible JTAG/ISP adapter | | Make | Build automation | | AVR‑DUDE‑style ISP utilities (modified for FirstChip) | Flashing the chip from the command line | | |----------|---------------| | Simple sensor node | Small
The FC1178BC is essentially a “classic” 8051 MCU with a few modern peripherals and a generous flash size for its class. Its low cost (often <$1 in bulk) makes it popular with hobbyists and small‑volume manufacturers. | Use‑Case | Why FC1178BC? | |----------|---------------| | Simple sensor node | Small flash + ADC, low power consumption | | Infrared remote control | Built‑in PWM for LED drivers, UART for debugging | | DIY hobby projects | Cheap, widely available, supported by open‑source toolchains | | Prototype of a commercial product | Pin‑compatible with many 8051 families, easy migration to larger FirstChip families later |
We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according our to our Cookie Policy.