12.07.2015 Views

PICAXE Manual Section 1 - TechnoPujades - Free

PICAXE Manual Section 1 - TechnoPujades - Free

PICAXE Manual Section 1 - TechnoPujades - Free

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

www.picaxe.co.uk<strong>Section</strong> 1 84GETTING STARTEDAppendix E – Configuring <strong>PICAXE</strong>-28X / 28X1 Input-Output PinsTo provide greater flexibility, the input /output pin configuration of the <strong>PICAXE</strong>-28Xcan be varied by the user.The default power up settings are the same asthe other <strong>PICAXE</strong>-28 parts (8 in, 8 out, 4analogue).PORTA (legs 2 to 5) provide 4 analogueinputs (default) or up to 4 digital inputs.PORTB (leg 21 to 28) provide 8 fixedoutputs.PORTC (leg 11 to 18) provide 8 digitalinputs (default) or up to 8 outputs.ResetC1- / ADC0 / A.0C2- / ADC1 / A.1C2+ / ADC2 / A.2C1+ / ADC3 / A.3Serial InSerial Out / A.40VResonatorResonatortimer clk / C.0pwm 1 / C.1(hpwm A) / pwm 2 / C.2i2c scl / spi sck / C.3<strong>PICAXE</strong>-28X2This gives a maximum of 12 digital inputs, 16 outputs and 4 analogue inputs12345678910111213142827262524232221201918171615B.7B.6B.5B.4 / ADC11 / (hpwm D)B.3 / ADC9B.2 / ADC8 / INT2 / (hpwm B)B.1 / ADC10 / INT1 / (hpwm C)B.0 / ADC12 / INT0+V0VC.7 / hserin / kb dataC.6 / hserout / kb clkC.5 / spi sdoC.4 / i2c sda / spi sdiPORTA FunctionsLeg Default Function Second Function2 analogue 0 porta input 03 analogue 1 porta input 14 analogue 2 porta input 25 analogue porta input 3PORTB FunctionsPORTB pins are fixed as outputs and cannot be altered.PORTC FunctionsLeg Default Second Function Special Function11 input 0 output portc 0infrared (input)12 input 1 output portc 1pwm 1 (output)13 input 2 output portc 2pwm 2 (output)14 input 3 output portc 3i2c scl clock (input)15 input 4 output portc 4i2c sda data (input)16 input 5 output portc 517 input 6 output portc 6keyboard clock (input)18 input 7 output portc 7keyboard data (input)The portC pins can be used as the default inputs, changed to outputs, or usedwith their special function via use of the infrain, keyin, i2cslave, or pwmoutcommand as appropriate.revolution(c) Revolution Education Ltd. Email: info@rev-ed.co.uk Web: www.rev-ed.co.ukVersion 6.9 07/2009All rights reserved.84

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!