Author |
Message |
Topic: Blinking character on LCD (not Cursor!) |
Skipper
Replies: 3
Views: 7135
|
Forum: General CCS C Discussion Posted: Tue Apr 04, 2006 9:46 am Subject: Blinking character on LCD (not Cursor!) |
I need a blinking character (not a blinking cursor, the actual character on a Position should blink) in Setup Mode on a LCD display, have anyone an idea ? |
Topic: How to set the 10bit PWM Duty Cycle in 16F684 |
Skipper
Replies: 6
Views: 13870
|
Forum: General CCS C Discussion Posted: Wed Dec 08, 2004 10:12 am Subject: How to set the 10bit PWM Duty Cycle in 16F684 |
That�s the generated code:
180: duty = 1011;
0000ED 3003 MOVLW 0x3
0000EE 0AF MOVWF 0x2f
0000EF 30F3 MOVLW 0xf3
0000F0 0AE MOVWF 0x2e
181: ... |
Topic: How to set the 10bit PWM Duty Cycle in 16F684 |
Skipper
Replies: 6
Views: 13870
|
Forum: General CCS C Discussion Posted: Wed Dec 08, 2004 8:57 am Subject: How to set the 10bit PWM Duty Cycle in 16F684 |
Thanks for your answer, but I tried it so like your way yesterday.
I am working with MPLab an when I start the Debugger with the MAPLab SIM and the Debugger comes to the line "set_pwm1_duty(450);" fo ... |
Topic: multiple sourse files clarification |
Skipper
Replies: 4
Views: 8361
|
Forum: General CCS C Discussion Posted: Wed Dec 08, 2004 8:14 am Subject: multiple sourse files clarification |
In "Source File" you can only set one xx.c File - the main.c File.
With #include xxx.c you can include other c-Files.
The other c-Files I put in "Other Files" so you can see it in MPlab and edit it. ... |
Topic: How to set the 10bit PWM Duty Cycle in 16F684 |
Skipper
Replies: 6
Views: 13870
|
Forum: General CCS C Discussion Posted: Wed Dec 08, 2004 6:11 am Subject: How to set the 10bit PWM Duty Cycle in 16F684 |
Hi,
I am working with the 16F684. How can I set the PWM Duty Cycle with 10 bit at the easiest way in C ?
Because the CCPR1L contains the eight MSB�s and the CCP1CON contains the two LSB�s.
With ... |
Topic: Memory Location with #locate |
Skipper
Replies: 4
Views: 8344
|
Forum: General CCS C Discussion Posted: Thu Nov 25, 2004 3:03 am Subject: Memory Location with #locate |
Is this correct to place an area with Datas (Bytes) in the rom of the PIC16F684 at Position 0x0100 ?
In which output file of the compiler can I see the Position of the Datas,
Because in the PICkit C ... |
Topic: Error: A #DEVICE required before this line |
Skipper
Replies: 11
Views: 19203
|
Forum: General CCS C Discussion Posted: Tue Nov 23, 2004 4:59 am Subject: Error: A #DEVICE required before this line |
Now I found my problem:
I put all source files in the Ordner "Source Files" in MPLAB, when I compiled the Error appears "A Device, ...."
So now I put only the main.c in the Ordner "Source Files" ... |
Topic: Error: A #DEVICE required before this line |
Skipper
Replies: 11
Views: 19203
|
Forum: General CCS C Discussion Posted: Sun Nov 21, 2004 5:50 am Subject: Error: A #DEVICE required before this line |
I made a mistake with the c-File Name, so now the compiler knows all functions.
But an error: "A #DEVICE required before this line" is already there.
I divined the processor in main.c with the inc ... |
Topic: Error: A #DEVICE required before this line |
Skipper
Replies: 11
Views: 19203
|
Forum: General CCS C Discussion Posted: Sun Nov 21, 2004 5:27 am Subject: Error: A #DEVICE required before this line |
Hi,
Today I tried to include the led.c in my main.c, the function "led();" are defined in led.h (not status_led.h - my mistake). But when I call led(); in my main file, the error "Function used but ... |
Topic: Error: A #DEVICE required before this line |
Skipper
Replies: 11
Views: 19203
|
Forum: General CCS C Discussion Posted: Sat Nov 20, 2004 6:32 am Subject: Error: A #DEVICE required before this line |
No, here�s my small test code:
main.c
#include <16F684.h>
#include <C:\Projekte\Sinus_Wechselrichter\Software\status_led.h>
void main(void);
void polling_mode(void);
void mai ... |
Topic: Error: A #DEVICE required before this line |
Skipper
Replies: 11
Views: 19203
|
Forum: General CCS C Discussion Posted: Sat Nov 20, 2004 6:11 am Subject: Error: A #DEVICE required before this line |
I have the device include file in my main.c
#include <16F684.h>
#include <led.h>
void main (void)
{
.....
led();
.....
}
Sorry I�ve forgotten it in my Posting |
Topic: Error: A #DEVICE required before this line |
Skipper
Replies: 11
Views: 19203
|
Forum: General CCS C Discussion Posted: Sat Nov 20, 2004 5:31 am Subject: Error: A #DEVICE required before this line |
in main.c:
#include <led.h>
void main (void)
{
.....
led();
.....
}
in led.c
void led (void)
{
...
}
The declaration of the function led is in led.h
Where is my ... |
|