Author |
Message |
Topic: led blink problem? |
noisepic
Replies: 9
Views: 10412
|
Forum: General CCS C Discussion Posted: Tue May 16, 2006 4:44 am Subject: led blink problem? |
oh!! TRISD . I have modified my code. it runs well.
thanks so much.
Richard Arroyo
The first your post is very very good!! |
Topic: led blink problem? |
noisepic
Replies: 9
Views: 10412
|
Forum: General CCS C Discussion Posted: Mon May 15, 2006 6:37 pm Subject: led blink problem? |
I have test some connection on my circuit board
+ MCLR --> OK
+ Both power supply-->OK
+ Resistor connected with LED 330 ohm
+ Crystal -> HS
When I measure PIN OSC1,OSC2( Pin13,14) the ... |
Topic: led blink problem? |
noisepic
Replies: 9
Views: 10412
|
Forum: General CCS C Discussion Posted: Mon May 15, 2006 10:36 am Subject: led blink problem? |
Maybe something wrong in configuration bit. This is very simple code, i'm newbie use PIC18F458. I want a Led blink with cycle of 500ms. But i can;t see it blink.
Helpme pls, i don't have much time ... |
Topic: led blink problem? |
noisepic
Replies: 9
Views: 10412
|
Forum: General CCS C Discussion Posted: Mon May 15, 2006 9:56 am Subject: led blink problem? |
#include<18F458.h>
#fuses NOWDT,HS,NOLVP,NOBROWNOUT,PUT,NOCPD,NOSTVREN,NODEBUG,NOWRT
#use delay(clock=8000000)
void main()
{
int16 temp;
int8 i;
for(i=1;i< ... |
Topic: Flexible LCD driver |
noisepic
Replies: 102
Views: 1046853
|
Forum: Code Library Posted: Fri May 05, 2006 8:03 pm Subject: Flexible LCD driver |
I have used flex_lcd.c for Pic16F877A but it doesn't working. I don't know why. I used PORTB
RS PIN_B2
E PIN_B3
D4-D7 PIN_B4-PIN_B7
help me pls? or another code!! |
Topic: anyone help me to design a pid controller using PIC and CCS |
noisepic
Replies: 1
Views: 14535
|
Forum: General CCS C Discussion Posted: Wed Mar 08, 2006 2:37 am Subject: anyone help me to design a pid controller using PIC and CCS |
could you guide me the steps to design a pid controller!
I'm newbie and have a bit know a bout PID |
Topic: what's wrong with setup_timer_2(T2_DIV_BY_1) |
noisepic
Replies: 1
Views: 5015
|
Forum: General CCS C Discussion Posted: Tue Nov 01, 2005 6:31 am Subject: what's wrong with setup_timer_2(T2_DIV_BY_1) |
When I compile my program there's an errors appeared:
Expect comma
what's problem? I think this problem doesn't cause by syntax. |
Topic: What's wrong with this simple code? |
noisepic
Replies: 9
Views: 9502
|
Forum: General CCS C Discussion Posted: Sat Oct 29, 2005 9:58 pm Subject: What's wrong with this simple code? |
I've checked these thing. but my PIC16F88 can't do its job.
I change another 16F88, the failure too!
I don't know why? |
Topic: What's wrong with this simple code? |
noisepic
Replies: 9
Views: 9502
|
Forum: General CCS C Discussion Posted: Wed Oct 26, 2005 10:35 pm Subject: What's wrong with this simple code? |
I want to make a led flash by this code. I use PIC16F88, Crystal 4 MHz
#include<16F88.h>
#fuses NOWDT,HS,MCLR,NOLVP,NOPROTECT
#use delay(clock=4000000)
main()
{
... |
Topic: display on LCD problem |
noisepic
Replies: 4
Views: 5780
|
Forum: General CCS C Discussion Posted: Sun Aug 21, 2005 9:26 pm Subject: display on LCD problem |
I'm sorry this post is not clearly. Because of my english...
I want to display number such as 34.5,35,35.5..mean that each step is 0.5
If I use
printf(lcd_putchar,"%3.1f",val); ... |
Topic: display on LCD problem |
noisepic
Replies: 4
Views: 5780
|
Forum: General CCS C Discussion Posted: Sun Aug 21, 2005 9:08 pm Subject: display on LCD problem |
I'm sorry this post is not clearly. Because of my english...
I want to display number such as 34.5,35,35.5..mean that each step is 0.5
If I use
[code]
printf(lcd_putchar,"%3.1f",val);
[\code]
... |
Topic: RB0/INT and button |
noisepic
Replies: 1
Views: 4254
|
Forum: General CCS C Discussion Posted: Fri Aug 19, 2005 10:50 pm Subject: RB0/INT and button |
Can i use button on RB0/INT for 2 jobs.
- first: for Interrupt
- second: for what button is pressed?
for exams
when button on RB0/INT is pressed we go to interrupt routine. During interrupt rout ... |
Topic: debounce switch |
noisepic
Replies: 11
Views: 18120
|
Forum: General CCS C Discussion Posted: Fri Aug 19, 2005 10:46 pm Subject: debounce switch |
this is my routine to check what key is pressed
char key_id;
......
while(1)
{
if(RA0==0)
{
delay_ms(20);
if (RA==0) key_id=1;
} ... |
Topic: display on LCD problem |
noisepic
Replies: 4
Views: 5780
|
Forum: General CCS C Discussion Posted: Fri Aug 19, 2005 10:42 pm Subject: display on LCD problem |
I have some trouble when working with LCD
I want to display an unsigned char on LCD. For exam var=51;
when display it on LCD it always 50. Mean that it always display
(var-var%10).
and when I ... |
Topic: how to build driver for a device? |
noisepic
Replies: 3
Views: 5020
|
Forum: General CCS C Discussion Posted: Fri Aug 19, 2005 9:15 am Subject: how to build driver for a device? |
For reading or writing to a device, we need driver . And there are many way to communicate with them : 3-wire,1-wire,I2C...
Any one can tell the way to build driver from datasheet. pls, give specific ... |
|