The eternal question
I am doing initial research for a new thing. Basically some buttons and a small dot-matrix display (7x7 RGB) and i'm trying to decide if i should consider using a small CPLD over a small MCU.
In order of importance:
- Low power (i would assume an average current of 5mA @3.3V, LEDs included. the lower the better. This means about 1-2mA for the controller)
- small, but ~44pin TQFP is fine. Can do double layer assembly if required
- will talk to other stuff via UART
- Low Cost
a contender for the MCU factor is the PIC16LF15385
- Low cost, low power, should fit the power budget
- Internal clock, very flexible routing: can run the core from LPFRC when UART is not needed (or even sleep) while PWM is using a faster clock source
- Pins are remappable, very flexible: Basically, i need three PWM generators and each turn i change the output pins to select a different row/column
- Easier to get done, just a C program with some attention to the detail to cut out every uA i can
- Smaller packages available
for the CPLD part i have eyed the ispMACH 4000V from lattice but i can't tell
- How many macrocells i will need, i have to try and write the code but lower end models are simillarly priced to the MCU
- If i need an external clock or there is an internal source
- How much current it will need, the datasheet is scary on this regard: 1.8V versions have operating current consumption in the order of undred(s) of uA but 2.5 and 3.3V start at 1.8mA when supply is 1.8V and goes up to 13mA
can someone shed some light
?