Author |
Message |
Topic: Modbus RTU |
wmeade
Replies: 5
Views: 16241
|
Forum: General CCS C Discussion Posted: Fri Jan 26, 2007 9:32 am Subject: Modbus RTU |
I have recently taken on the challenge of interfacing my 18F452 to a PLC using Modbus RTU. I noticed that there was a modbus.c file in the drivers directory but no example files. I contacted tech su ... |
Topic: Setting up timers reference? |
wmeade
Replies: 3
Views: 13199
|
Forum: General CCS C Discussion Posted: Tue Jan 27, 2004 9:36 pm Subject: Thanks Neutone |
I created a spread sheet for timer 1. If I got it right the following will be true:
With 20MHz Clock
setup_timer_2(T2_DIV_BY_16,255,16) will interrupt every 13.056mSec |
Topic: Setting up timers reference? |
wmeade
Replies: 3
Views: 13199
|
Forum: General CCS C Discussion Posted: Tue Jan 27, 2004 10:03 am Subject: Setting up timers reference? |
I am using a 18F242 and need to setup a internal timer to interrupt every 16ms. I am having trouble figuring out how to configure a timer to do a 16ms interrupt. Is there a good reference I can use ... |
Topic: How do I detect when external interrupts stop. |
wmeade
Replies: 2
Views: 15611
|
Forum: General CCS C Discussion Posted: Tue Jan 13, 2004 11:59 am Subject: How do I detect when external interrupts stop. |
The code below is working code. I need to tell when the external interrupts have stopped so I can display 0.00 FPM. I think that some sort of a timmer would do the trick but everything I have tried ... |
Topic: Delay 232 output |
wmeade
Replies: 3
Views: 14148
|
Forum: General CCS C Discussion Posted: Mon Jan 12, 2004 12:05 pm Subject: Thanks for the help |
Thank you Neuton and ttelmah for the quick replies. Using your sugestions I was able to transmit once a second and get everything working just the way it should. |
Topic: Delay 232 output |
wmeade
Replies: 3
Views: 14148
|
Forum: General CCS C Discussion Posted: Mon Jan 12, 2004 10:12 am Subject: Delay 232 output |
I have working code below to measure the speed of a conveyor belt in FPM but would like to output that speed every second instead of constant output. Everything I have tried to output at one second i ... |
Topic: MAX7219 LED Driver Help needed... |
wmeade
Replies: 20
Views: 30574
|
Forum: General CCS C Discussion Posted: Mon Oct 20, 2003 1:28 pm Subject: MAX7219 LED Driver Help needed... |
I am trying to drive 2 7 segment leds using a 16F877 with a MAX7219 LED Display Driver chip using PICC SPI Drivers. I have done a search of the forum and found 4 references that I have used to accomp ... |
Topic: Hardware Interupt Question |
wmeade
Replies: 9
Views: 31408
|
Forum: General CCS C Discussion Posted: Mon Sep 29, 2003 3:33 pm Subject: I got it working with a minor problem. |
I am able to measure the milli-seconds between pulses and averaging 8 of them before sending out the serial port. While I am receiving pulses I press a buton to save the current milli-second pulse av ... |
Topic: Hardware Interupt Question |
wmeade
Replies: 9
Views: 31408
|
Forum: General CCS C Discussion Posted: Sat Sep 27, 2003 3:12 pm Subject: Hardware Interupt Question |
Mark,
What would be the range of time you would like to measure?
Between 30ms and 800ms
Is 1 ms accurate enough for the speed measurement?
1 mS accuracy should be ok because I will ave ... |
Topic: Hardware Interupt Question |
wmeade
Replies: 9
Views: 31408
|
Forum: General CCS C Discussion Posted: Sat Sep 27, 2003 8:00 am Subject: Hardware Interupt Question |
I will try to explain what I am trying to measure. I have a roller with two magnetic targets on it that are pickups for a hall effect switch. When the switch passes over the targets it sends a 5vdc ... |
Topic: Hardware Interupt Question |
wmeade
Replies: 9
Views: 31408
|
Forum: General CCS C Discussion Posted: Fri Sep 26, 2003 3:48 pm Subject: Hardware Interupt Question |
Thanks for the quick responses. I have a couple more questions concerning the code above.
In the code above, what is the measurement in? Is it in us or ms? I have built a test fixture in the pas ... |
Topic: Hardware Interupt Question |
wmeade
Replies: 9
Views: 31408
|
Forum: General CCS C Discussion Posted: Fri Sep 26, 2003 11:45 am Subject: Hardware Interupt Question |
I am working with a 16F873 with a pulse input connected to B0. I would like to measure the time between a Low going pulse and the next High going pulse and place it in a variable to be used in some m ... |
Topic: Custom LCD Characters |
wmeade
Replies: 8
Views: 15789
|
Forum: General CCS C Discussion Posted: Fri Sep 12, 2003 12:44 pm Subject: Custom LCD Characters |
Thanks for the quick response mark. I was able to load and display my custome cursor.
Below is how I loaded it and then displayed it for anyone that may be doing the same thing using LCD.C.
// ... |
Topic: Custom LCD Characters |
wmeade
Replies: 8
Views: 15789
|
Forum: General CCS C Discussion Posted: Fri Sep 12, 2003 8:38 am Subject: Custom LCD Characters |
I would like to create a custom LCD character to display on my 4x20 LCD. This was rather easy in PBP, but appears to be more complicated in PICC. I searched the forum and found one message that pert ... |
Topic: Writting Strings to External EEPROM |
wmeade
Replies: 2
Views: 15159
|
Forum: General CCS C Discussion Posted: Wed Sep 10, 2003 1:21 pm Subject: Re: Writting Strings to External EEPROM |
Thanks for your reply. I am not worried as much about using more parts as I am about running out of memory when programming. The Menu is ratherextensive with three levels. This aproach seems simple ... |
|