Author |
Message |
Topic: .o Object file creation |
BoydNielsen
Replies: 4
Views: 5781
|
Forum: General CCS C Discussion Posted: Mon Aug 03, 2009 3:08 pm Subject: .o Object file creation |
I too would like to create some separate .o "object files" (want to put some of those special drivers into a library). I know that in MPLAB it can be done with the C18 and C30 compilers by ... |
Topic: Byte to Nibble |
BoydNielsen
Replies: 3
Views: 8512
|
Forum: General CCS C Discussion Posted: Sun Oct 05, 2008 4:33 pm Subject: Byte to Nibble |
Thanks. Sometimes one forgets the basics (shift right and bit masking)!
a = 174;
MSnibble = a >> 4; // right shift to remove lower nibble
LSnibble = a & 0xF; // bit mask to remo ... |
Topic: Byte to Nibble |
BoydNielsen
Replies: 3
Views: 8512
|
Forum: General CCS C Discussion Posted: Sun Oct 05, 2008 4:08 pm Subject: Byte to Nibble |
Does anyone have a quick and efficient way of converting a byte into two separate nibbles in CCS? Years ago on a different platform, we used to be able to:
int8 a, MSnibble, LSnibble;
a = 174; ... |
Topic: Two timed inputs? |
BoydNielsen
Replies: 1
Views: 3129
|
Forum: General CCS C Discussion Posted: Sat Aug 16, 2008 5:43 pm Subject: Two timed inputs? |
I have a project where product is fed to two different conveyor belts via an alternating mechanical diverter. I want to add a photocell on each of the two conveyor belts so that when product backs up ... |
Topic: MCP23016 simple driver |
BoydNielsen
Replies: 4
Views: 46900
|
Forum: Code Library Posted: Fri Aug 15, 2008 6:15 am Subject: MCP23016 simple driver |
I have never used the MCP23016 I/O Expander and have a presssing project where this will help greatly. Your "MCP23016 simple driver" appears to be well written. However, I have a question: ... |
Topic: LCD Module - Blinking Cursor or Underline Cursor |
BoydNielsen
Replies: 10
Views: 22616
|
Forum: General CCS C Discussion Posted: Wed Jul 04, 2007 10:01 am Subject: LCD Module - Blinking Cursor or Underline Cursor |
Well, I finally got a chance to test the suggestions provided. It works great.
I use the "flex_lcd.c" driver (vice the "lcd.c" driver provided directly from CCS). I inserted t ... |
Topic: LCD Module - Blinking Cursor or Underline Cursor |
BoydNielsen
Replies: 10
Views: 22616
|
Forum: General CCS C Discussion Posted: Tue Jul 03, 2007 10:04 am Subject: LCD Module - Blinking Cursor or Underline Cursor |
Thanks. I knew I was missing something basic here -- of course you have to be able to initialize the display (what was I thinking!). This helps me immensely.
Boyd |
Topic: LCD Module - Blinking Cursor or Underline Cursor |
BoydNielsen
Replies: 10
Views: 22616
|
Forum: General CCS C Discussion Posted: Tue Jul 03, 2007 9:33 am Subject: LCD Module - Blinking Cursor or Underline Cursor |
dro,
Okay, as I understand it (and after re-reviewing the datasheet again), to control the display ON/OFF, underline cursor, or blinking; I must set the DB0, DB1, or DB2 data bits high while holdin ... |
Topic: LCD Module - Blinking Cursor or Underline Cursor |
BoydNielsen
Replies: 10
Views: 22616
|
Forum: General CCS C Discussion Posted: Fri Jun 29, 2007 2:01 pm Subject: LCD Module - Blinking Cursor or Underline Cursor |
Thanks. It looks simple enough. Sometimes I miss the obvious. I'll try it over the weekend and post my results.
Boyd |
Topic: LCD Module - Blinking Cursor or Underline Cursor |
BoydNielsen
Replies: 10
Views: 22616
|
Forum: General CCS C Discussion Posted: Fri Jun 29, 2007 7:46 am Subject: LCD Module - Blinking Cursor or Underline Cursor |
Does anyone know how to turn on a flashing cursor or underline cursor on a standard HD44780 type LCD module? Is there a command that I can send to the LCD module to turn it on and off? With the curs ... |
Topic: Writing to EEPROM during compile/program? |
BoydNielsen
Replies: 2
Views: 3871
|
Forum: General CCS C Discussion Posted: Mon Sep 04, 2006 4:00 pm Subject: Writing to EEPROM during compile/program? |
Thanks for the quick reply. This is exactly what I was looking for. Now to play...
Boyd |
Topic: Writing to EEPROM during compile/program? |
BoydNielsen
Replies: 2
Views: 3871
|
Forum: General CCS C Discussion Posted: Mon Sep 04, 2006 3:44 pm Subject: Writing to EEPROM during compile/program? |
I am programming several PICs, and would like to "pre-program" some data into the EEPROM during the PIC flashing. In PicBasic Pro, I would just use the "EEPROM" statement in my co ... |
|