Parallax Lab PE Platform Скачать руководство пользователя страница 10

Copyright © Parallax Inc.  

  PE Platform Setup v1.0  

  11/2/2006   

  Page 10 of 12 

L

 

You can download 

PushbuttonLedTest.spin from the Propeller Education Kit product page at 

www.parallax.com

.  Then, simply drag and drop it onto the Propeller Tool’s Edit Pane to open it.   

 

 

3

 

Open PushbuttonLedTest.spin into the Propeller Tool, or type it in.  If you type, be careful to 
indent each line exactly as shown.  

3

 

Click the Propeller Tool’s 

Run

 menu and select 

Compile Current 

 Load EEPROM

 (F11).   

 
The Propeller Communication window will appear briefly and display the progress.  If it closes after 
the “Verifying EEPROM” message, then the download was successful.  If instead an error window 
opens that reads “EEPROM programming error...”, refer to Troubleshooting entry (8) on page 12. 
 

3

 

Verify that the LED flashes on/off rapidly, at 10 Hz.   

3

 

Press and hold the pushbutton down, and verify that the LED flashes slower, at only 4 Hz. 

3

 

If everything worked as anticipated, go on to I/O Pin Tests below.  If it did not work, go to 
Troubleshooting entry (9) on page 12. 

I/O Pin Tests 

If you are inheriting this platform from a student who has already taken the class you are starting, it is 
especially important to take some time now to confirm all the I/O pins are functioning correctly, both 
as outputs and inputs.  We will use the LED circuit to test each of the I/O pins’ output function on the 
Propeller’s left side (P0 to P15).  Since they all send the same signal as P3, each one should make the 
LED circuit blink.  After that, the pushbutton can be iteratively rewired to different I/O pins on the 
right.  PushbuttonLedTest.spin has to be modified and downloaded to the propeller to test each wiring 
change.  Once the left side has been tested as outputs and the right as inputs, the circuits can be 
swapped so that the left side can be tested as inputs and the right side as outputs. If any of these tests 
indicate that an I/O pin is faulty, refer to Troubleshooting entry (10) on page 12. 
 

3

 

Use the wire connecting P3 to probe P0 through P15.  Each I/O pin should cause the LED 
circuit to blink the same way it does when it’s connected to P3. 

3

 

Unplug the pushbutton wire at P18, and plug it into P16. 

3

 

Change the 

CON

 directive 

PUSHBUTTON 

from 18 to 16. 

3

 

Run the modified program and verify that a pushbutton connected to P16 still controls the 
LED frequency. 

3

 

Repeat this procedure for P17, P19, P20, and so on, up through P27. Using F10 to download 
to RAM instead of EEPROM will make this go faster. 

3

 

Disconnect the battery, and remove the pushbutton and LED test circuits from the board. 

3

 

Reconnect the battery and Propeller plug. 

3

 

Change the 

CON

 directives 

LEDs_START

 and 

LEDs_END

 from 0 and 15 to 16 and 27. 

3

 

Change the 

PUSHBUTTON

 directive from 18 to 13. 

3

 

Download the modified program. 

3

 

Disconnect the battery, then rebuild the test circuits on opposite sides of the board from 
what’s shown in  Figure 5.  The pushbutton should be connected to P13, and the LED should 
be used to probe I/O pins from P16 to P27. 

3

 

Reconnect the battery.  The LED frequency should again be controlled by the pushbutton. 

3

 

Repeat the output tests for P16 to P27 and the input tests for P0 to P15. 

3

 

Also use the LED to probe the positive supply rails on the right side of the board. 

 
 

Содержание Lab PE Platform

Страница 1: ...nter along with support circuits that make it a convenient and reusable project platform The support circuits include 5 0 V and 3 3 V voltage regulators EEPROM for non volatile program storage 5 MHz external crystal oscillator for precise clock signal Reset button for manual program restarts LED power indicator 9 V battery to breadboard connector 4 pin Propeller Plug header for program downloads a...

Страница 2: ...or use with future labs by following these steps Taking an inventory of equipment and parts Installing the Propeller Tool v1 0 or newer software Assembling the PE Platform Testing power and programming connections Testing the crystal oscillator and the programming connections to EEPROM Testing I O pins as both inputs and outputs Troubleshooting if necessary Since the PE Platform will be the microc...

Страница 3: ...6 Bags of 10 Jumper Wires P8X32A D40 1 Propeller Chip P8X32A 40 pin DIP 120 00003 1 Propeller DIP pin map sticker 3 Take an inventory of the components in the Propeller DIP Plus Kit If anything is missing replacement parts can be obtained from www parallax com using the part numbers shown Software and Driver Installation The Propeller Tool software is available for download from the Parallax web s...

Страница 4: ...ct circuits without having to worry about potentially removing a part or wire that s integral to the PE Platform L Recommended reading Propeller Manual v1 0 pages 13 17 3 Do not plug in the battery Propeller Plug or Propeller chip until instructed to do so 3 Connect the interlocking breadboards together as shown in Figure 3 making sure the numbers and letters are oriented the same way as in the fi...

Страница 5: ...tter for the column and a number for the row For example the 9 V battery s positive terminal wire plugs into the center breadboard s L 1 column L row 1 and its negative terminal plugs into L 2 The 2 26 power rails rows line up with the numbers on the prototyping breadboards Red and black lines indicate the column designation in the power rails For example the coordinates of the LED s anode is RED ...

Страница 6: ...d to the PE Platform s negative power rail This power rail is connected directly to the battery supply s negative terminal 3 Verify that the Power LED s anode terminal is connected to RED 10 Power Supply 3 Connect the battery to the battery holder as shown in Figure 3 The power LED should glow brightly If it does not unplug it immediately and go to Troubleshooting entry 2 on page 11 3 If you have ...

Страница 7: ... chip By modifying both the test circuit and test program you will be able to verify all the PE Platform s subsystems Test the Programming Connection The first test uses the Propeller Tool software s Identify Hardware feature The battery should be connected and the Propeller Plug should be connected to the 4 pin header and your PC via the USB cable 3 Open the Propeller Tool then from the Run menu ...

Страница 8: ... battery 3 Disconnect the LED wire from L 14 in Figure 5 and plug it into RED 13 on the power rail between the center and left prototyping breadboards The LED should light If it doesn t double check your wiring and especially check if the LED is plugged in backwards 3 Disconnect the wire from RED 13 and plug it into RED 12 on the leftmost power rail The LED should glow again 3 Disconnect the LED w...

Страница 9: ... 10 Hz if the pushbutton connected to P18 is not pressed or at 4 Hz if it is pressed The fact that the LED blinks confirms the oscillator is working properly since the program causes the Propeller chip to use it for a clock signal Next the lead that connects P3 to the LED circuit can be connected to P0 then P1 etc through P15 and it should blink at 10 Hz at each probe point or 2 Hz if the button i...

Страница 10: ...atively rewired to different I O pins on the right PushbuttonLedTest spin has to be modified and downloaded to the propeller to test each wiring change Once the left side has been tested as outputs and the right as inputs the circuits can be swapped so that the left side can be tested as inputs and the right side as outputs If any of these tests indicate that an I O pin is faulty refer to Troubles...

Страница 11: ...rd backwards The battery s terminal should connect to L 1 and the terminal should connect to L 2 c There could be a wiring mistake causing a short circuit from one of the supply voltages to ground If you don t have a multimeter start visually checking your wiring again With a multimeter you can check the resistance between the battery s negative terminal and the 3 V power rail Repeat for 5 V regul...

Страница 12: ...sure it is not inserted upside down Also verify that all the pins on the left side of the chip are tied to GND 9 If you hand entered the program download it from the Propeller Education Kit page instead Open it with the Propeller Tool software and use F11 to download it to EEPROM This will eliminate the possibility of a clerical error during program entry If the LED does not start flashing check t...

Отзывы: