Digitales

516 views

Published on

this is a slide of communication between VB and PIC

Published in: Technology, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
516
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
4
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Digitales

  1. 1. COMMUNICATION BETWEEN VB ANDMICROCHIP FAMILY THROUGH RS-232C
  2. 2. Visual BasicO VB is a language programming OOP thatallows a simple form programmingthrough modules and objects.O The interface with the user is intuitive andeasy to use, however it syntax is a littlemore complex.
  3. 3. ELEMENTS FOR RS-232CCOMMUNICATIONTOOLBOX VB 2010
  4. 4. ELEMENTS FOR RS-232CCOMMUNICATION IIPROPERTIES OF SERIAL PORTOBJECT
  5. 5. ELEMENTS FOR RS-232CCOMMUNICATION IIIPROPERTIES SERIAL PORT
  6. 6. ELEMENTS FOR RS-232CCOMMUNICATION IVPROPERTIES TIMER OBJECT
  7. 7. ELEMENTS OF MICROCHIPFAMILYO LIBRARIES HOW TIMERS.O MODULES EUSART, USART,O TABLE 2-13: SINGLE USART PERIPHERAL FUNCTIONSO Function DescriptionO 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 enhancedUSART
  8. 8. ELEMENTS OF MICROCHIPFAMILY IIO Baud rate:O USART_BRGH_HIGH High baud rateO USART_BRGH_LOW Low baud rateO USART_ASYNCH_MODE Asynchronous ModeO USART_SYNCH_MODE Synchronous ModeO 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.
  9. 9. INTERFACE BETWEEN PCAND PICO MAX232
  10. 10. LINKSO http://www.youtube.com/watch?v=GxH93lLV4fQO http://www.youtube.com/watch?v=meJtSQQaMb4O Blog:O http://losilustradosecci.blogspot.com/O Thanks

×