background image

TOWER SYSTEM 

Lab Tutorial for TWR-S08GW64 

1 2 3

J6

1 2 3

J3

1 2 3

J1

2

4

6

1

3

5

J14

1
2
3

1
2
3

J15 J16

1
2
3

J10

J7

Connect between 1 and 2 for both J15 
and J16 to connect the output of QE8 
to ADC1 and ADC2 for signal simulation 

input.

1 2 3

J6

1 2 3

J3

1 2 3

J1

2

4

6

1

3

5

J14

1
2
3

1
2
3

J15 J16

1
2
3

J10

J7

Connect between 2 and 3 for J10 to 

connect Switch 4 as the tamper 1 input.

1 2 3

J6

1 2 3

J3

1 2 3

J1

2

4

6

1

3

5

J14

1
2
3

1
2
3

J15 J16

1
2
3

J10

J7

Connect between 4 and 6 and between 3 
and 5 for J14 to connect the GW64 serial 
data to RS232.                                                  

Summary of Contents for freescale MC9S08GW64

Page 1: ...TOWER SYSTEM Lab Tutorial for TWR S08GW64 MC9S08GW64 LCD segment MCU for flow meters and energy metering applications...

Page 2: ...nector Figure 1 TWR S08GW64 TWR S08GW64 KIT Freescale Tower System The TWR S08GW64 module is part of the Freescale Tower System a modular development platform that enables rapid prototyping and tool r...

Page 3: ...d Lab 1 Displays the current voltage energy and power factor Displays the clock calendar and tampers registered The value of the current voltage and power factor can be varied using the potentiometer...

Page 4: ...2 and 3 in J6 to get power from the regulator 1 2 3 J6 1 2 3 J3 1 2 3 J1 2 4 6 1 3 5 J14 1 2 3 1 2 3 J15 J16 1 2 3 J10 J7 Connect J7 to power up the MCU from the output of J6 1 2 3 J6 1 2 3 J3 1 2 3...

Page 5: ...to connect the output of QE8 to ADC1 and ADC2 for signal simulation input 1 2 3 J3 1 2 3 J1 2 4 6 1 3 5 J14 1 2 3 1 2 3 J15 J16 1 2 3 J10 Connect between 2 and 3 for J10 to connect Switch 4 as the tam...

Page 6: ...zip and save the folders Demo_ Board_Application_Software and LCD LAB on the desktop 5 Using CodeWarrior click File Open and browse to Desktop Demo_Board_ Application_Software demo_board mcp for LAB1...

Page 7: ...TOWER SYSTEM Lab Tutorial for TWR S08GW64 Open the Source Code 1 In the File menu go to Import as shown 2 Expand General and select CodeWarrior Classic Project Importer as shown Click Next STEP 3...

Page 8: ...ct the mcp file and click Finish 4 The project directory structure will be visible as shown In the CodeWarrior window double click on MC9S08GW64 h in the Libs folder and paste the following line in th...

Page 9: ...are identical to each other 2 Take the GW64 Controller card and insert the PRIMARY connector side in the Primary Elevator matching the B marking of the Elevator card and the controller card in any of...

Page 10: ...n switch ON the toggle switch PWR SW on the Primary Elevator 2 Connect the debugger for downloading the code from the PC by connecting the USB Cable from the PC USB Type A Female connector to the USB...

Page 11: ...O9S08GW64 Lab as follows 1 Connect the serial cable between your PC and the serial module 2 Open the HyperTerminal application and create a new connection on the COM port that connects to the UART on...

Page 12: ...ps to load the code Using CodeWarrior compile and program the MC9S08GW64 microcontroller with the application by clicking on RUN button drop down as shown 1 Click on Run Configuration 2 Select LCD_LAB...

Page 13: ...METER RTC DEMO LCD DEMO GW64 DEMO By pressing SW5 the user can access the sub menus of the main menus as follows E METER Keep pressing SW5 to scroll through the following RMS current RMS voltage Acti...

Page 14: ...ctor displayed SW4 To increase the tamper count In order to set the date hold SW5 for a few seconds when the date is being displayed Then set the date using the combination of SW3 and SW5 Hold SW5 aga...

Page 15: ...through the HyperTerminal via the UART port so make sure the UART cable is connected from board to the computer Now the board is able to communicate to the DEMO9S08GW64 via the UART as shown 1 Type he...

Page 16: ...r Freescale the Freescale logo and CodeWarrior are trademarks of Freescale Semiconductor Inc Reg U S Pat Tm Off All other product or service names are the property of their respective owners 2010 Free...

Reviews: