SlideShare ist ein Scribd-Unternehmen logo
1 von 10
Downloaden Sie, um offline zu lesen
COMMUNICATION BETWEEN VB AND
MICROCHIP FAMILY THROUGH RS-232C
Visual Basic
O VB is a language programming OOP that
allows a simple form programming
through modules and objects.
O The interface with the user is intuitive and
easy to use, however it syntax is a little
more complex.
ELEMENTS FOR RS-232C
COMMUNICATION
TOOLBOX VB 2010
ELEMENTS FOR RS-232C
COMMUNICATION II
PROPERTIES OF SERIAL PORT
OBJECT
ELEMENTS FOR RS-232C
COMMUNICATION III
PROPERTIES SERIAL PORT
ELEMENTS FOR RS-232C
COMMUNICATION IV
PROPERTIES TIMER OBJECT
ELEMENTS OF MICROCHIP
FAMILY
O LIBRARIES HOW TIMERS.
O MODULES EUSART, USART,
O TABLE 2-13: SINGLE USART PERIPHERAL FUNCTIONS
O Function Description
O BusyUSART Is the USART transmitting?
O CloseUSART Disable the USART.
O DataRdyUSART Is data available in the USART read buffer?
O getcUSART Read a byte from the USART.
O getsUSART Read a string from the USART.
O OpenUSART Configure the USART.
O putcUSART Write a byte to the USART.
O putsUSART Write a string from data memory to the USART.
O putrsUSART Write a string from program memory to the USART.
O ReadUSART Read a byte from the USART.
O WriteUSART Write a byte to the USART.
O baudUSART Set the baud rate configuration bits for enhanced
USART
ELEMENTS OF MICROCHIP
FAMILY II
O Baud rate:
O USART_BRGH_HIGH High baud rate
O USART_BRGH_LOW Low baud rate
O USART_ASYNCH_MODE Asynchronous Mode
O USART_SYNCH_MODE Synchronous Mode
O Asynchronous mode, high speed:
O FOSC / (16 * (spbrg + 1))
O Asynchronous mode, low speed:
O FOSC / (64 * (spbrg + 1))
O Synchronous mode:
O FOSC / (4 * (spbrg + 1))
O Where FOSC is the oscillator frequency.
INTERFACE BETWEEN PC
AND PIC
O MAX232
LINKS
O http://www.youtube.com/watch?v=GxH93l
LV4fQ
O http://www.youtube.com/watch?v=meJtSQ
QaMb4
O Blog:
O http://losilustradosecci.blogspot.com/
O Thanks

Weitere ähnliche Inhalte

Ähnlich wie Digitales

Interfacing omni flow computer to remote operation controller (roc) remote te...
Interfacing omni flow computer to remote operation controller (roc) remote te...Interfacing omni flow computer to remote operation controller (roc) remote te...
Interfacing omni flow computer to remote operation controller (roc) remote te...
eSAT Journals
 
TVZ_Komunikacije_nastupno_predavanje.ppt
TVZ_Komunikacije_nastupno_predavanje.pptTVZ_Komunikacije_nastupno_predavanje.ppt
TVZ_Komunikacije_nastupno_predavanje.ppt
plenny2
 
Modbus application protocol_v1_1b_2
Modbus application protocol_v1_1b_2Modbus application protocol_v1_1b_2
Modbus application protocol_v1_1b_2
Ashar Saleem
 

Ähnlich wie Digitales (7)

RTU vs TCP
RTU vs TCPRTU vs TCP
RTU vs TCP
 
Interfacing omni flow computer to remote operation controller (roc) remote te...
Interfacing omni flow computer to remote operation controller (roc) remote te...Interfacing omni flow computer to remote operation controller (roc) remote te...
Interfacing omni flow computer to remote operation controller (roc) remote te...
 
TVZ_Komunikacije_nastupno_predavanje.ppt
TVZ_Komunikacije_nastupno_predavanje.pptTVZ_Komunikacije_nastupno_predavanje.ppt
TVZ_Komunikacije_nastupno_predavanje.ppt
 
Modbus application protocol_v1_1b_2
Modbus application protocol_v1_1b_2Modbus application protocol_v1_1b_2
Modbus application protocol_v1_1b_2
 
Wsdl 2.0 message exchange and WS Security
Wsdl 2.0 message exchange and WS SecurityWsdl 2.0 message exchange and WS Security
Wsdl 2.0 message exchange and WS Security
 
Study and Development of PIC Microcontroller to PC Communication via USB
Study and Development of PIC Microcontroller to PC Communication via USBStudy and Development of PIC Microcontroller to PC Communication via USB
Study and Development of PIC Microcontroller to PC Communication via USB
 
0_651601247.pdf
0_651601247.pdf0_651601247.pdf
0_651601247.pdf
 

Kürzlich hochgeladen

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 

Digitales