28X2 Module with firmware v1 help with PWM

handyandy

New Member
Morning

I have an old 28 module with firmware v1 B.1

looking at the current datsheet it has 4 PWM pins C.1, C.2 B.0 and B.5

I wish to use this old module to drive some RGB leds as i wish to make use of it compact size and voltage regulation.

This is my test code to make a greenish colour



symbol R_LED = c.1
symbol G_LED = c.2
symbol B_LED = B.0



for b3 = 1 to 3000

pwmout R_LED ,185, 50
pwmout G_LED , 199, 50
pwmout B_LED , 58,50

next b3

When checking the synatx it tells me it ok

But when programming the module i get an error

pwnout not supported on this pin in this firmware version (Firmware >=VB.3)

when using a new module it works fine.

So, am i able to find an old datasheet to see if the PWM pinouts have changed, or am i amble to use a different code.

Many thanks

Andy
 

westaust55

Moderator
The X2 breifing note / summary includes a comparison table of the differences between the earlier and later/newer X2 parts.
That indicates how many PWMOUT and HPWM channels exist for each chip.

http://www.picaxe.com/docs/picaxex2.pdf

All of the Rev Ed documentation can be found via the Manuals link at the top of these forum pages.

Further if you look at the PICAXE Manual 1 page 11, as well as the 28X2 pinouts,down at the bottom it also states:
Features shown in brackets { } are not available in older -5V and -3V variants
which includes pwm on PortB pins B.0 and B.5.
 
Top