Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
Usehi all...
from what i know putcUSART(0x66); is to send an "f" in terms of hexadecimal to Ascii...
now the thing is that how do i make send more than 1 byte at any point of time?
thanks!
You cannot send more than one char. at a time. With a loop you can send one char right after another. Look for a 0b0 at then end of a string.
use a loop with putcUARTx...
or putsUARTx
..what's the compiler are you using?
//No need to monitor flag for writing in USART all is automatic
#include<p18f1320.h>
#include<usart.h>
#pragma config OSC=INTIO2,WDT=OFF,LVP=OFF
void main(void)
{
TRISBbits.TRISB0=0;
OSCCON=0b01100000;// 4MHz crystal//
//while(!OSCCONbits.IOFS); since this causes problem in proteus
ADCON1=0x7F;
OpenUSART(USART_TX_INT_OFF &// 8 bit mode,4800 BR//
USART_RX_INT_OFF &
USART_ASYNCH_MODE &
USART_EIGHT_BIT &
USART_CONT_RX &
USART_BRGH_LOW,
12);// Change this for different BR//
while(1)
{
putrsUSART ("\n\rHello World!\n\r");
}
}