Freescale Semiconductor TWR-MCF52259-Ethenet User Manual Download Page 1

TM

Freescale Semiconductor Confidential and Proprietary Information. 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. 2006.

TWR-MCF52259-Ethenet

Hareesh S

Sr.FAE

Summary of Contents for TWR-MCF52259-Ethenet

Page 1: ...rietary Information 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 Semiconducto...

Page 2: ...he Freescale logo are trademarks of Freescale Semiconductor Inc All other product or service names are the property of their respective owners Freescale Semiconductor Inc 2006 1 Ethernet Overview Sess...

Page 3: ...w Session What is Ethernet It s a cable I connect to my computer to surf the net It s how I do emails My home router uses it to let all my computers talk Why do we care about Ethernet Work is telling...

Page 4: ...l other product or service names are the property of their respective owners Freescale Semiconductor Inc 2006 3 Ethernet Ethernet defines the mechanical electrical connection between devices the physi...

Page 5: ...ames are the property of their respective owners Freescale Semiconductor Inc 2006 4 Generic ColdFire Board Layout of Ethernet RJ45 RJ45 ColdFire ColdFire Network Network Magnetics Magnetics On Chip Et...

Page 6: ...uct or service names are the property of their respective owners Freescale Semiconductor Inc 2006 5 M52233DEMO Board Layout of Ethernet RJ45 RJ45 MCF5223x MCF5223x Network Network Magnetics Magnetics...

Page 7: ...scale logo are trademarks of Freescale Semiconductor Inc All other product or service names are the property of their respective owners Freescale Semiconductor Inc 2006 6 Ethernet Overview Physical Se...

Page 8: ...ir respective owners Freescale Semiconductor Inc 2006 7 Ethernet Cable Straight Through Pinout The following table demonstrates the proper color scheme White Brown Brown Wire pair 4 White Green Green...

Page 9: ...e property of their respective owners Freescale Semiconductor Inc 2006 8 Ethernet Cable Crossover Pinout The following is the proper pin out and cable pair color order for the crossover end orange Pin...

Page 10: ...me Transmission Medium Data Rate Mb s Distance m 100BASE TX 2 pairs of Category UTP 5 alternative 2 pairs of STP 150 Impedance Cable Code MLT 3 Full Duplex 100 100 100BASE FX 2 Multimode Optical Fiber...

Page 11: ...nductor Inc 2006 10 Full Duplex Half Duplex Full duplex operation means that devices at each end of a full duplex link can send and receive data simultaneously This means theoretically that Full Duple...

Page 12: ...the property of their respective owners Freescale Semiconductor Inc 2006 11 Basic Ethernet Network Hub Multiport repeater physically star topology common transport medium CSMA CD Logically bus topolo...

Page 13: ...reescale 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 2006 12 Basic E...

Page 14: ...ial and Proprietary Information 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...

Page 15: ...nformation 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 200...

Page 16: ...ice names are the property of their respective owners Freescale Semiconductor Inc 2006 15 Switch The switch reads the destination addresses and switches the signals directly to the recipients without...

Page 17: ...et Router Gateway A Router or Gateway is used to translate one protocol to another It is also used when the physical layer changes mediums Ethernet to fiber At one time there was a difference between...

Page 18: ...twork devices to connect to both 10BASE T and 100BASE T media segments The MII electronics may be linked to an outboard transceiver through a 40 pin MII connector and a short 0 5m MII cable The MII is...

Page 19: ...to Negotiation can achieve is based on a priority table The Auto Negotiation protocol contains a set of priorities which result in the devices selecting their highest common set of abilities If the de...

Page 20: ...ctor Inc 2006 19 The Ethernet Data Packet Format Preamble Destination Address Source Address Frame Type Frame User Data FCS Checksum 8 Byte 6 Byte 6 Byte 2 Byte 46 1500 Byte 4 Byte 64 1518 Ethernet Da...

Page 21: ...Systems Interconnection ISO International Organization for Standardization LAN Local Area Network WAN Wide Area Network MAC Medium Access Control BD Buffer Descriptor PHY Physical Layer Device MDI Med...

Page 22: ...ontention slot after a transmission is reserved for an acknowledge packet A node is either transmitting or receiving at any instant The bandwidth is about 10 Mbit s Disk Ethernet Disk transfer rate wi...

Page 23: ...Inc 2006 22 More Ethernet References Web sites http www tcpipguide com http www uni trier de infos ether ethernet guide ethernet guide html HDR 202 0 20 20 202 2062 http www lauraknapp com presentatio...

Page 24: ...spective owners Freescale Semiconductor Inc 2006 23 IP IP Internet Protocol The IP defines how a network of more then 2 devices is formed IP is the network Layer IPv4 uses 32 bit addressing IPv6 uses...

Page 25: ...re are not enough IP addresses for everbody To solve this problem subnetting is used IP addresses consists of 2 parts a node address and a network address The class of the address and the subnet mask...

Page 26: ...e address and a network address The subnet mask determines which bits identify a node address and which bits identify a network address The network bits are the 1 s the node bits are the 0 s Default s...

Page 27: ...0 192 168 255 255 256 C RFC 3068 IPv6 to IPv4 relay Anycast 192 88 99 0 24 192 88 99 0 192 88 99 255 256 C RFC 3330 Documentation and Examples 192 0 2 0 24 192 0 2 0 192 0 2 255 1 048 576 B RFC 1918 P...

Page 28: ...ading or IP masquerading involves re writing the source and or destination addresses of IP packets as they pass through a router or firewall Most systems using NAT do so in order to enable multiple ho...

Page 29: ...2 192 168 1 3 192 168 1 4 192 168 1 5 Router Gateway running NAT IP 10 1 2 3 internet 10 1 2 3 192 168 1 0 Default Gateway is where packets addressed outside the subnet are sent to Node 192 168 1 5 ne...

Page 30: ...1 3 192 168 1 4 192 168 1 5 Router Gateway running NAT IP 10 1 2 3 internet 10 1 2 3 192 168 1 0 Default node is where all packets from internet that are not responses to packets from subnet are route...

Page 31: ...the Protocols in the Internet Protocol Suite TCP Transport Control Protocol TCP provides a virtual connection from one point to another The protocol guarantees reliable and in order delivery of sender...

Page 32: ...tagram Protocol Supported via Interniche Used to transfer data without a connection Provides 65535 multiplexed ports per IP address PPP Point to Point Protocol Supported via Interniche used to establi...

Page 33: ...is a layered abstract description for communications and computer network protocol design developed as part of the Open Systems Interconnect initiative Layer 7 Application HTTP SMTP POP3 TFTP Layer 6...

Page 34: ...RFC0024 RFC0027 RFC0030 Status UNKNOWN 0017 Some questions re Host IMP Protocol J E Kreznar Aug 27 1969 Format TXT 6065 bytes Status UNKNOWN 0018 IMP IMP and HOST HOST Control Links V Cerf Sep 01 1969...

Page 35: ...roprietary Information 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 Semicondu...

Page 36: ...otor Control MCF521 2 3 4 CAN MCF51AC 5V Motor Control MCF5282 10 100 CAN 32KB 64KB 128KB 256KB 512KB MCF5281 10 100 CAN MCF5225x 10 100 USB otg MQX RTOS Low cost 1MB MC51QE Ultra Low Power MCF52230 1...

Page 37: ...Compare PWM timers 2 ch Periodic Interrupt Timer 8 ch PWM timer with enhanced DAC capabilities 2nd Watchdog timer with independent clock Real Time Clock with 32kHz crystal oscillator 8 ch 12 bit A to...

Page 38: ...d Proprietary Information 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 Semico...

Page 39: ...nd Proprietary Information 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 Semic...

Page 40: ...of their respective owners Freescale Semiconductor Inc 2006 39 MCF522xx Ethernet Media Access Controller MAC The Ethernet MAC supports 10 100 Mbps Ethernet IEEE 802 3 networks IEEE 802 3 full duplex f...

Page 41: ...ervice names are the property of their respective owners Freescale Semiconductor Inc 2006 40 MCF5223x ePHY The ePHY embedded PHYsical layer interface is IEEE 802 3 compliant Supports both the media in...

Page 42: ...r with DMA MII Interface with Output Clock for PHY Support Half Full Duplex MQX Software Reuse of software Full production source code Developers keep their source modifications Small configurable foo...

Page 43: ...28CGT 3 31 20 8 2 6 3 16 70 16 12 80LQFP MCF51CN128CLK 10K SRP Ext Bus lines addr data chip select TPM Ch SCI UART Rapid GPIO Port I O KBI ADC Ch Package Part 68K 68K Cold ColdFire Fire V1 Core Up to...

Page 44: ...43 Freescale Complimentary Software Solution InterNiche and Freescale have collaborated to provide and OEM version of InterNiche s NicheLite optimized for the ColdFire architecture Key Features Addre...

Page 45: ...Probe Customized Applications Hardware Application tasks industry specific libraries BSP PSP CAN MQX RTOS Optional Services USB File System Ethernet RTCS Demo Code PC Hosted On Device Freescale Enable...

Page 46: ...vice names are the property of their respective owners Freescale Semiconductor Inc 2006 45 RTCS Real time TCP IP Communications Suite Protocols RPC XDR Telnet SSH XML HTTP FTP POP3 SMTP DNS SNMP TFTP...

Page 47: ...owns Source code rights to distribute and modify across the Freescale Portfolio Benefits Full production source code with silicon Commercial friendly licensing model that lets developers keep their s...

Page 48: ...owners Freescale Semiconductor Inc 2006 47 Coldfire TCP IP Stack Features HTTP server HTTP client RSS XML client TCP UDP client and server Serial to Ethernet client and server TFTP DHCP or Manual IP c...

Page 49: ...d Proprietary Information 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 Semico...

Page 50: ...d Proprietary Information 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 Semico...

Page 51: ...roprietary Information 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 Semicondu...

Page 52: ...ary Information 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 In...

Page 53: ...ial and Proprietary Information 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...

Page 54: ...ormation 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 2006...

Page 55: ...nd Proprietary Information 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 Semic...

Page 56: ...nd Proprietary Information 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 Semic...

Page 57: ...le 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 2006 56 Project file...

Page 58: ...nd Proprietary Information 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 Semic...

Page 59: ...ion 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 2006 58 Co...

Page 60: ...dential and Proprietary Information Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or service names are the property of their respective owners Freesc...

Page 61: ...iconductor Inc All other product or service names are the property of their respective owners Freescale Semiconductor Inc 2006 60 Flashing and booting the board Connect the board via USB and serial to...

Page 62: ...oprietary Information 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 Semiconduc...

Page 63: ...and Proprietary Information 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 Sem...

Page 64: ...nd Proprietary Information 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 Semic...

Page 65: ...roprietary Information 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 Semicondu...

Page 66: ...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 2006 65 Hyper...

Page 67: ...ary Information 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 In...

Page 68: ...tial and Proprietary Information 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...

Page 69: ...oprietary Information 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 Semiconduc...

Page 70: ...emarks of Freescale Semiconductor Inc All other product or service names are the property of their respective owners Freescale Semiconductor Inc 2006 69 Comunicating between the board and PC PING COMM...

Page 71: ...escale Semiconductor Inc All other product or service names are the property of their respective owners Freescale Semiconductor Inc 2006 70 IP Address changing Open the Main c file Change the IP addre...

Page 72: ...ietary Information 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...

Page 73: ...ther product or service names are the property of their respective owners Freescale Semiconductor Inc 2006 72 Freescale Semiconductor Confidential Proprietary Freescale and the Freescale logo are trad...

Page 74: ...al and Proprietary Information 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 S...

Page 75: ...and Proprietary Information 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 Semi...

Page 76: ...l and Proprietary Information 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 Se...

Page 77: ...TM...

Page 78: ...TM TWR MCF52259 USB April 7 2010 Hareesh S Sr FAE...

Page 79: ...TM Introduction to USB Basic Operation of USB hardware and software USB Data Structures for K2 3u USB API Calls for K2 3u This module contains Module Agenda K2u USB Workshops on Demand Series...

Page 80: ...TM Introduction To USB...

Page 81: ...TM Motivation for the USB Standard History and Evolution of USB USB Topology USB Connectors Introduction to USB In This Section...

Page 82: ...t bi directional low cost dynamically attachable serial interface that removes the port availability constraints for the PC and other devices USB Universal Serial Bus was born out of the need to provi...

Page 83: ...d play attributes for a wide range of devices simultaneously with minimal or no user intervention required for configuration and is very end user friendly Motivation Introduction to USB Motivation for...

Page 84: ...d Evolution U S B 1 0 S p e c i f i c a t i o n Introduction to USB 1995 1996 1998 2000 2001 U S B g r o u p f o r m e d U S B 1 1 S p e c i f i c a t i o n U S B 2 0 S p e c i f i c a t i o n U S B O...

Page 85: ...Mbps 25 400 Mbps Moderate performance guaranteed latency guaranteed bandwidth Printers audio devices floppy drives 12 Mbps 5 10 Mbps Low cost but limited performance type and number of endpoints are...

Page 86: ...d Devices are one of the following Hubs provide additional attachment points Functions devices which provide capabilities to the system e g printer thumb drive I pod Up to 7 tiers Can have up to 5 hub...

Page 87: ...TM Hub USB Topology Hub Host Root Hub Introduction To USB Topology Hub Tiered Star Hub...

Page 88: ...TM Introduction to USB A connector upstream B connector downstream USB Standard Connectors Hub Hub B B B A A Hub B B A A A Root Hub B A A B B A A B B A Connector types Introduction To USB...

Page 89: ...TM USB Topology Introduction to USB Software General Concepts...

Page 90: ...is Transferred in USB How Does the Host Know the Device s Requirements The Enumeration Process What happens when a device is connected A More Detailed Look at What Comprises a Frame API Calls What hap...

Page 91: ...3 Transaction 2 Packet 1 Packet 2 Packet 3 Transaction 3 Packet 1 Packet 2 Packet 3 Transfer 3 Transaction 1 Packet 1 Packet 2 Packet 3 1500 bytes 1 Ms USB is a token based packet standard Data is tra...

Page 92: ...ade up of transactions which are made up of packets The USB host schedules these 1mS frames when communicating with the low and full speed devices Frame Transfer Transfer Transaction Transaction Trans...

Page 93: ...How Data is Transferred in USB Frame Transfer Transfer There are 4 types of data transfer 1 Interrupt 2 Bulk 3 Isochronous 4 Control The type of transfer depends upon the type of device and its data...

Page 94: ...he General USB Process How Data is Transferred in USB Each transfer can contain multiple transactions and a transaction can span multiple frames Transfer Transaction Transaction The host schedules tra...

Page 95: ...that communicate the data between host and device Transaction Transaction Packet 1 Packet 2 Packet 3 Packet 1 Packet 2 Packet 3 1 Token Packet the header that defines what follows 2 Optional Data Pack...

Page 96: ...ments such as 1 Type of transfer required interrupt bulk isochronous or control 2 Who supplies the power host or device 3 Maximum packet size 4 The number of configurations e g a single device can be...

Page 97: ...Know a Device s Requirements These requirements are communicated to the host through a hierarchy of C program descriptors The types of descriptors include 1 Device Descriptors 2 Configuration Descript...

Page 98: ...descriptors looks like this Device Descriptor Configuration Descriptor Configuration Descriptor Interface Descriptor Endpoint Descriptor Endpoint Descriptor Interface Descriptor Endpoint Descriptor E...

Page 99: ...nfo Sample Standard Device Descriptor Type Definition Fields Length 18 bytes Descriptor Type DEVICE USB Spec Release Number 0200h Device class hub type Human Interface defined in other descriptor CDC...

Page 100: ...Value value used by the SetConfiguration request to select this configuration Configuration Index of String Descriptor describing this configuration Attributes bus powered self powered remote wakeup M...

Page 101: ...nted once for each new interface descriptor Alternate Setting value used to select alternative setting Number of Endpoints number of Endpoints used for this interface Interface Class e g HID mass stor...

Page 102: ...cket Size indicates the maximum payload size for this endpoint Interval interval for polling endpoint data transfers Value in frame counts Ignored for Bulk Control Endpoints Isochronous must equal 1 a...

Page 103: ...nt Descriptor Endpoint Descriptor Interface Descriptor Endpoint Descriptor Endpoint Descriptor Interface Descriptor Endpoint Descriptor Endpoint Descriptor Interface Descriptor Endpoint Descriptor End...

Page 104: ...endpoints and assigns a unique address for each This same process occurs for devices that are dynamically plugged in to the host except the host waits 120ms for the device to settle The Enumeration Pr...

Page 105: ...identifiable portion of a Universal Serial Bus device that is the source or sink of information in a communication flow between the host and device Power can be supplied by the host or the device 1 I...

Page 106: ...E ENDPOINT HID USB Spec Release Number 0200h Device class hub type Human Interface defined in other descriptor CDC described here Device Sub class 00h Device protocol 00h Maximum Packet size 64 bytes...

Page 107: ...Isochronous Transfer Devices that stream data such as speakers would choose the Isochronous type of transfer There is no error correction with this transfer mode as with bulk 1023 Kbytes second trans...

Page 108: ...wo transfer modes can use up to 90 of the total bandwidth Interrupt transfer mode isochronous transfer mode bulk transfer mode 4 Once 90 of the available bandwidth is used up the host does not allow a...

Page 109: ...nous and interrupt devices up to 90 so that they are guaranteed the bandwidth they need Bulk and control transfers use whatever space is left Frame Transfer 1 Transaction Start of Frame Transfer 2 Tra...

Page 110: ...ete within the frame The host schedules transactions within 1mS frames for low and full speed Token Data Handshake Transfers may span multiple frames Control Interrupt Bulk Isochronous Unused 1 Ms Fra...

Page 111: ...e If you were to monitor D and D you would see the packet fields Packet Identifier Address Endpoint Data Frame number CRC 5 4 7 8 Bits CRC Endpoint Address PID Field Token Packet format 5 11 8 Bits CR...

Page 112: ...fer Data Token Data IN or OUT Isochronous Handshake Data Token Data IN or OUT Interrupt Handshake Data Token Data IN or OUT Bulk Handshake Data Token Status IN or OUT Handshake Data Token Data IN or O...

Page 113: ...ate clock signal not required to be delivered with data 1 on the data line indicates no change in level of NRZI signal 0 on the data line indicates transition in level of NRZI signal Long string of 1s...

Page 114: ...e device is ready to perform the function it was designed for It does so by issuing a set of properly sequenced API calls Definition Application Program Interface API A formalized set of firmware call...

Page 115: ...ve host_add_ep host_remove_ep host_modify_ep host_ms_delay host_scan_for_device Initialize the host controller Disable the host controller Reset the USB bus and all connected devices Send configuratio...

Page 116: ...TM Software General Concepts API Calls What happens after enumeration Commonly used API calls for devices...

Page 117: ...after enumeration Note to reviewers what happens behind the scenes after enumeration between the host and device driver etc e g the host automatically polling the devices for data receiving the data...

Page 118: ...TM Software General Concepts Note to reviewers A short introduction to the demos should go here...

Page 119: ...te to reviewers Here should be a short discussion of what the programmer would have to do to modify the code in the Demo Kit or CMX Offerings for their specific device e g they may just need to modify...

Page 120: ...joystick CDC to UART bridge functionality Freescale and CMX have collaborated to provide a complimentary USB stack for ColdFire Microcontrollers Host HID Drivers Generic HID HID keyboard HID mouse HI...

Page 121: ...torage for attached SD card or similar FAT file System for attached SD card or similar USB Host FAT file System Printer Lite These additional stacks are available for purchase from CMX Advanced Topics...

Page 122: ...TM USB Topology Introduction to USB Introduction to USB Appendix A USB On the Go...

Page 123: ...endix A USB On the Go USB On the Go What is it Remember that previously we said that USB 1 can be implemented as a device or a host 2 there can be only one host but many devices 3 and the host control...

Page 124: ...teraction of peripheral devices the USB Group saw the need for a USB device to sometimes act as a device and sometimes act as the host From that need came the USB On the Go specification U S B 1 0 S p...

Page 125: ...ould use USB On the Go On the left laptop is acting as the host controlling the flow of data to the camera phone and on the right the camera phone is acting as the host controlling the flow of data to...

Page 126: ...wake up and role reversal respectively They are Appendix A USB On the Go SRP Session Negotiation Protocol HNP Host Negotiation Protocol SRP introduces these new expanded states OTG A device a_idle a_...

Page 127: ...ost Default Peripheral A device B device D D VBUS GND ID When using A and B plugs initially the device using the A plug is declared the host and the one using the B plug is declared the device When us...

Page 128: ...the Go SRP Session Request Protocol Negotiations OTG B device asks OTG A host for a USB OTG session by signaling in one of two ways Pulsing an analog data line D or D and Pulsing VBUS through a relat...

Page 129: ...evice 2 OTG A host suspends bus signaling so that OTG B device can now become host 3 OTG B device detects Suspend condition and turns off pull up resistor 4 Because HNP is enabled OTG A host interpret...

Page 130: ...device stops using bus and becomes peripheral device 7 OTG A host sees lack of activity disconnects and becomes host Host Negotiation Protocol continued Note If the OTG B device does not STALL the Set...

Page 131: ...TM...

Page 132: ...TM Freescale USB Solutions...

Page 133: ...olio from cost effective entry level MC9S08JS8 with 8KB flash and 20 pin packages to powerful MCF5225x with 512KB flash and 144 pin packages Market leading software and support CodeWarrior development...

Page 134: ...1JM128 A panel of distinguished judges representing a cross section of Chinese industry and academic specialists plus EDN China s editorial board narrowed the list of award finalists from the total su...

Page 135: ...TM USB Solutions Low Full Speed Device Host OTG MC9S08JS16 8...

Page 136: ...CF52259 USB features Dual Mode USB Controller USB 1 1 and 2 0 complient full speed device controller 16 bi directional end points DMA or FIFO data stream interface Low power consumption OTG protocol l...

Page 137: ...TM USB...

Page 138: ...TM LABs...

Page 139: ...TM LABs LAB1 HID Device operation LAB2 CDC Device Operation LAB3 MSD Host Operation LAB4 HID Host Operation...

Page 140: ...re_USB_Lite exe file This Exe will install the required project files for our Labs Open the codewarrior for Coldfire GO through the code warrior features Open the first project which is located in the...

Page 141: ...TM Project file HID Drag the mcp file to code warrior...

Page 142: ...TM Project file details Project files details...

Page 143: ...TM Compiling and flash programming Make Step1 Flash programmer Step2...

Page 144: ...TM Flash selection Select load settings Step1 Load the MCF52259 flash xml file Step2...

Page 145: ...TM Flash selection Proper configuration chosen...

Page 146: ...TM Flash Erasing Flash erase...

Page 147: ...TM Flash Erasing Flash Erase...

Page 148: ...TM Flash programming Program the code...

Page 149: ...TM Output of the Lab Insert the USB Cable to MiniA connector on the peripheral board and other side to your system USB port Reset the board Look at the curser on your system it should be oscillating...

Page 150: ...TM LAB2...

Page 151: ...rofiles r63554 Desktop USB for MCF52259 usb peripheral projects CodeWarrior mcf52223 cdc demo Follow the Steps which we have followed in the LAB1 for flash programming Insert the USB cable to MiniA co...

Page 152: ...TM PC side drive file installation Driver file installation Choose the second option...

Page 153: ...TM PC side driver file installation Location...

Page 154: ...TM USB driver USB detected...

Page 155: ...TM COM Port at System side USB commport number Step1 device manager...

Page 156: ...TM Hyper terminal for USB Open the Hyper terminal Select the USB port Set the baud rate 19200 Data bit 8 Parity None Stop bit NO...

Page 157: ...TM Hyper terminal for UART Open one more Hyper Terminal Set the Baud rate 19200 Type the character in one terminal This shold be displayed in other terminal and visa versa...

Page 158: ...TM Working...

Page 159: ...TM LAB3...

Page 160: ...onality Open the Lab from the Installed folder D Profiles r63554 Desktop USB for MCF52259 usb host projects CodeWarrior mcf52223 mass storage Follow the same steps followed in LAB2 for flash programmi...

Page 161: ...TM Reset the board Message from the board after reset...

Page 162: ...TM Type Help Command details...

Page 163: ...TM USB thumb driver detected After thumb driver inserting the detection message...

Page 164: ...TM Thumb drive contents...

Page 165: ...TM AN3560 pdf page 21 for the USB operation...

Page 166: ...TM...

Reviews: