Hi.
As a newcomer to the world of PICAXE I'm a little baffled as to what is the total current capacity of the 18M2?
I note from the Manual Pt.1 that each pin is capable of 25mA with a maximum current per chip of 90mA. Somehow that doesn't appear to be the full story.
I've had a look at the specification for the PIC16F818/819 which was the 18M chip (I've no idea what chip the 18M2 actually is). Here, in the spec, it says that each pin can source 25mA and/or sink 25mA - OK, so far so good. It goes on to indicate that the maximum current into Vdd is 200mA and out of Vss is 200mA. I'm slightly confused by this.
What I'm trying to setup is 6, maybe 7 output pins, each suppling an LED-pair - source or sink depending on the state of the output pin of around 17mA. Therefore, 17mA x 6 gives a total output pin current of 102mA - over the stated maximum according to the manual.
This is for a model railway project using inputs taken from the position of turnouts to operate an appropriate track signal - it being a red or a green LED lit (red sourcing 17=mA, green sinking 17mA).
Is what I'm looking to achieve, acceptable from a current point of view or am I over the maximum for the 18M2 chip? And how does this relate to other chips in the PICAXE series?
Thanks
Dave
As a newcomer to the world of PICAXE I'm a little baffled as to what is the total current capacity of the 18M2?
I note from the Manual Pt.1 that each pin is capable of 25mA with a maximum current per chip of 90mA. Somehow that doesn't appear to be the full story.
I've had a look at the specification for the PIC16F818/819 which was the 18M chip (I've no idea what chip the 18M2 actually is). Here, in the spec, it says that each pin can source 25mA and/or sink 25mA - OK, so far so good. It goes on to indicate that the maximum current into Vdd is 200mA and out of Vss is 200mA. I'm slightly confused by this.
What I'm trying to setup is 6, maybe 7 output pins, each suppling an LED-pair - source or sink depending on the state of the output pin of around 17mA. Therefore, 17mA x 6 gives a total output pin current of 102mA - over the stated maximum according to the manual.
This is for a model railway project using inputs taken from the position of turnouts to operate an appropriate track signal - it being a red or a green LED lit (red sourcing 17=mA, green sinking 17mA).
Is what I'm looking to achieve, acceptable from a current point of view or am I over the maximum for the 18M2 chip? And how does this relate to other chips in the PICAXE series?
Thanks
Dave