sci hands-on exercise - nxp semiconductors56800/e training slide 2 freescale™ and the freescale...

38
56800/E Training Slide 1 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004 TM 56800/E SCI Hands-On Exercise

Upload: others

Post on 11-Jun-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

Slide 1

Presenter Logo Here

56800/E Training

Slide 1Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

56800/E SCI Hands-On Exercise

Page 2: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 2Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Task Description

Serial Port (SCI)

Develop a monitor application that uses SCI in messages between PC and DSC56F801x EVB.

56F801xEVB

HyperTerminal (Console) for CAN Data Display

via RS232,Bits/sec : 9600 No parity : none

Stop bit : 1Hardware : None

RS232

56F801x JTAG-DSPAXM-0337

Page 3: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 3Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Approach

Use Processor Expert Beans to implement Target System applicationAsynchroSerialDownload and Execute on 56F801x Demo Board

Page 4: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 4Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Click File pull down menu

Page 5: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 5Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Select PE stationary

Type SCI Exercise inside the dial box

Page 6: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 6Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Select MC56F8013VFAE project stationery

Page 7: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 7Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

PE template is shown on.

Page 8: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 8Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Kick AsynchroSerial Bean under Communication PE menu

Then, kick Baud rate dial box under the properties of Bean Inspector AS1:AsynchroSerial

Page 9: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 9Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Type 9600 baud rate inside the dial box

Page 10: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 10Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Select Generate Code ‘SCI Exercise.mcp’ under PE pull down menu to generate the code

Page 11: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 11Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Page 12: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 12Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Open up the SCI_Exercise.c:main file to edit user code.

Page 13: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 13Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Select PE Bean SendCharfor sending out characters

Page 14: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 14Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Put PE Bean SendChar to SCI_Exercise.c:main by Drag-n-Drop Methods.

Page 15: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 15Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Made more characters to send out by Copy-n-Paste methods.

Page 16: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 16Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

We need to wait for the 1st

character send out completely if we want to send out 2nd character in SCI communication.

kick Methods page of Bean Inspector AS1:AsynchroSerial

Page 17: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 17Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Enable GetRxIdle PE Bean by kicking this dial box

Page 18: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 18Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Enable GetTxComplete PE Bean by kicking this dial box

Page 19: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 19Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Scroll up the screen to reach GetTxComplete PE Bean by kick the scroll bar

Page 20: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 20Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Put PE Bean GetTxComplete to SCI_Exercise.c:main by Drag-n-Drop Methods.

Page 21: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 21Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Modify it as while statement.

Page 22: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 22Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Make every while statement for every character sending out.

Page 23: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 23Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Page 24: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 24Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Kick Yes to update the code.

Page 25: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 25Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Page 26: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 26Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Kick green arrow to download the code to 56F801xEVB .

Page 27: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 27Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Page 28: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 28Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Page 29: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 29Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Page 30: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 30Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Kick green arrow to run the code inside 56F801xEVB .

Page 31: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 31Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Invoke HyperTerminal for getting the characters from 56F801xEVB.

Page 32: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 32Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Type the name you want

Page 33: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 33Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Select your PC COM port for communication

Page 34: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 34Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Select 9600 baud rate, 8 data bit, no parity,1 stop bit, none flow control

Then, kick OK

Page 35: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 35Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

“Hello” is shown on the HyperTerminal screen

Page 36: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

Slide 36

Presenter Logo Here

56800/E Training

Slide 36Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Summary

Page 37: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 37Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Summary

Understand the hardware and software support available for the 56800E Hybrid Controller product line.

Demonstrated the ease of developing applications using CodeWarrior development tools with Processor Expert™ technology.

Page 38: SCI Hands-On Exercise - NXP Semiconductors56800/E Training Slide 2 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service

56800/E Training

Slide 38Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

TM

Thank You!!!