Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About lcd

  • Rank
  1. Hi asmallri: I did it! Thank you very much!
  2. Great tutorial! I'll try it. by the way, what is 'hey presto' ? Thanks.
  3. For example: I have an array variable ary[0] ~ ary[9] that located in PIC RAM and I want to display the content of, say, ary[3] on LCD. Then I can use "lprintf("%d", ary[3]);" to do it. Now, if I want to transmit the content of ary[3] to PC computer via RS232, how can I do this? Since I am a beginner, it is not easy for me to figure out how to use the function primatives in rs232_driver.c. Thanks.
  4. Great! Thank you so much. asmallri. It is working now. But the functionality of this RS232 driver is so restricted such that I could not transmit a variable number to the PC.
  5. Hi Asmallri, Thank you for your anwser. I made two modifications: 1: comment out the line: bit_time thing. 2: change uart_init(1,21); to uart_init(1,25); Then after rebuild it, I got the things below. It looks that the "bit_time" is needed. Clean: Deleting intermediary and output files. Clean: Done. Executing: "C:\Program Files\SourceBoost\boostc.pic16.exe" try3.c -O1 -W1 -t 16F877A BoostC Optimizing C Compiler Version 2.2.5 Beta (for PIC16 architecture) http://www.picant.com/c2c/c.html Copyright© 2004-2005 Pavel Baranov Copyright© 2004-2005 David Hobday C:\Program F
  6. Hi, I am trying the rs232 using 16f877a @4MHz Hardware USART. It is not working. My code is below. From comment in rs232_driver.h, it seems that "bit_time" is only for software usart. I am using hardware part, why do I have to use it? Thanks. #include <system.h> #include <icd2.h> #define bit_time 104 // 9600 baud at 4MHz // PIC16F87x defaults for hardware USART support #define TX_PORT 0x07 #define TX_TRIS 0x87 #define TX_BIT 6 #define RX_PORT 0x07 #define RX_TRIS 0x87 #define RX_BIT 7 #define e_SPBRG 0x99 #define e_RCREG 0x1a #define e_TXREG
  7. Can I connect lcd's data pins to other pins of port X except 4,5,6,7, for example pic16f877A port D 3,4,5,6 pins, using lcd_driver.c?
  8. The reason lprintf is used in IRS is because I want to use button RB0 interruption to trigger the display of the data A/D gathered.
  9. I can use lprintf in main without problem. But when I use it in interrupt, the message comes.
  10. When I use lprintf function, I got message: Failed to load ......\xxx.COF. What's the reason?
  11. Why I could not find the ADCS2 bit defined in ADCON1 register in pic16F877A.h file?
  12. post your code here such that one can help you.
  13. The things bother me a lot are not the c syntax but the header file included in the boostC source file. For example, how can I know what PIC microcontroller is being used in "lcd.c" file. Don't tell me that I can get it from comment. It seems that the inluded file "system.h" has the answer. But I am not able to trace it till getting a conclusion. Also, I am trying to analyze this part of code: #ifdef _PIC16 #pragma DATA _CONFIG, _CP_OFF & _PWRTE_OFF & _WDT_OFF & _HS_OSC #else #pragma DATA _CONFIG1H, _OSCS_OFF_1H & _HS_OSC_1H #pragma DATA _CONFIG2L, _BOR_ON_2L
  14. anyone tried this: when you drag the workspace frame to somewhere else, you can never put it back as default status.
  15. Hi dave, I figured out how the single number bit notation works. Please just tell my 1st question. Thanks.
  • Create New...