Sunteți pe pagina 1din 9
Chapter 4 Serial Interface to PIC This chapter discusses case studies developed for interfacing PIC through HyperTerminal. Following applications ure developed 4.1 Configuring HyperTerminal 4.2 Setting up HyperTemminal 4.3 Displaying Data on HyperTerminal 44 HyperTerminal Interface: Getting Sensor Signal on HyperTerminal 45. HyperTerminal Based Control: Controlling an Actuator Such as Relay from PC HyperTerminal 4.6 Controlling a Sicpper Motor from HyperTerminal: HyperTerminal Keyboard Provides Direction HyperTerminal is @ data communications utility program that has been distrib- uted With many Miemsom Windows® operating systems, including Windows 95, Windows 98, Windows Me, Windows 2000, and Windows XP. Its a program for connecting a computer to other computers. It can also be set for accessing Telnet sites, bulletin board systems (BBSs), online services, using the connectivity options such as a modem or a nall modem cable or even through Ethernet connection, With ihe advent of world wide web where sophisticated protocols are taking care of the online communication, the use of HyperTerminal has hecome almost rare. However for an embedded engineer, it is still a great debugging tool for testing the modems orsend the commanis othe eed ance come oF Ian Dea wel used for sending bulky files without setting up the network for the PC. Moreover, this is really useful for the old PCs where the setting up of the network is difficult. By default the “HyperTerminal” application resides in the communications option. It can be activated by following the following steps (refer Fig. 4.1) Fig. 4.1 Locating the “HyperTerminal” in WINDOWS If the HyperTerminal is bring used for the frst time, it will seek information to configure. This includes “Location Information” such as country, sires code, ‘modem or TCP/IP and tone/pulse dialing options. ‘In case the user wants to use the “HyperTerminal” program other than the MS Windows, then there are couple of sharewares which is doing the same things. The sitoad Uinta on gives Mk te etbicasss (A 40). ME crihey mavcsnaes es bilities than that included in MS Windows [43] ‘The main advantage of the HyperTerminal is applications such as Excel to plot the graph or to s importing the data direetly in other lize the trends online. 4.1 Configuring HyperTerminal The step by step procedure given below will help you to configure the ‘HyperTerminal for executing the case studies developed here. 1. Configuring HyperTerminal 4.2. Setting Up HyperTerminal Following tp by etsy ARON wil gui you ts wetup the Hyper Teinal fr the sppllotigns developed Wi bic cbaptar 1. Click the HyperTerminal icon and through the file option ereate “new Connection” “File:NewConnection” Name the connection (for example, PIC 1). (refer Fig. 4.2) 2. Select the appropriate "COM" port. Care has to be taken to select the appropriate COM port and its cousin, This means if'a modem Is connected 10 COM? then its cousin COM4 should be avoided for the data logging application given nere (because the cousin port also shares the same interrupt). (refer Fig. 4.3) 3. Sot “Bits per second” to 9,600. 4, Set “Data Bits” to 8, 5, Set “parity” to none 6, Set “Stop Bits” 10 1. 7. Set “Flow control” to none, 8, Click OK — the HyperTerminal sereen should appear 9. The configuration can be saved by selecting the “File” menu select “Save As” that saves the configuration file to any convenient folder Fle 42 (comin ig 3 HyperTeriaa snow wendy itera wih she elect COM pore Windows Movie Moker 26 2 windows Update “A XPS Viewer Accessories Adobe CcOeaner Classic Gaming Network Divx Plas DOsBa0.74 Euro Truck Simulator 2 Lida deka 1 GOM Player |B 009K Chrome Th Googles Auto Backup aa Cerio |b HyperTeioal Private Eaton # HyperTemina Help ‘@2 HyperTerminal Private Edition Read Me (Web 9 Uninstall HyperTerminal 2) wocdPad ReadMe eee Enter deta forthe phone nunber that you want to dal Countryfesion: fing @ Enter the area code wthout the long-dtanee pri: preacode: [BE Phone number Connect using: [Com I Configure... Detect Carrier Loss IZ Use country freion code nd ares cod Rel on busy (|__|

S-ar putea să vă placă și