Page 1
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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!!!