Author |
Message |
Topic: Help me with dsPIC |
pk178
Replies: 3
Views: 4524
|
Forum: General CCS C Discussion Posted: Tue Jul 13, 2010 6:23 am Subject: Help me with dsPIC |
Hi everybody !
I'm new in dsPIC, I wrote a program, very simple, this is my code :
#include <30F2020.h>
#device *=16
#FUSES NOPROTECT, NOWDT, FRC
#use fast_io(d)
void main ... |
Topic: Help me with timer in PIC16F887 |
pk178
Replies: 3
Views: 4995
|
Forum: General CCS C Discussion Posted: Wed May 19, 2010 6:33 am Subject: Help me with timer in PIC16F887 |
I solved this problem.
The problem is timer 0 overflow too fast, so encoder pulse can't increase. After that, I increase prescaler of timer 0 to 256 and it worked ok. |
Topic: Help me with timer in PIC16F887 |
pk178
Replies: 3
Views: 4995
|
Forum: General CCS C Discussion Posted: Tue May 18, 2010 12:41 am Subject: Help me with timer in PIC16F887 |
Hi everybody !
I want to control a DC motor. I use PWM module and timer 0 and timer 1 :
+ Timer 0 : Used to calculate timer.
+ Timer 1 : Used to read pulse from encoder to calculate speed of m ... |
Topic: Define QEI pins |
pk178
Replies: 2
Views: 3836
|
Forum: General CCS C Discussion Posted: Sun May 09, 2010 11:10 pm Subject: Define QEI pins |
Many thanks bkamen !
I didn't know the statement "#pin_select", I'be tried it, it's ok.
Your nick name seem you're in Viet Nam, I learning in HUT, nice to meet u ;) |
Topic: Define QEI pins |
pk178
Replies: 2
Views: 3836
|
Forum: General CCS C Discussion Posted: Sat May 08, 2010 6:30 pm Subject: Define QEI pins |
Hi everybody !
I use dpPIC33FJ12MC202 to control DC motor, I want to use QEI module of this MCU, but in CCS, I can't find which function can define pins for QEI module. The function available is : ... |
Topic: Help me with RS232 circuit |
pk178
Replies: 6
Views: 8940
|
Forum: General CCS C Discussion Posted: Thu May 06, 2010 8:34 pm Subject: Help me with RS232 circuit |
Looking at the PCB though. What is the component left of the PIC, with just four pins?.
Assuming this part isn't doing anything silly, then it looks 'possible'. I'd say the most likely proiblems were ... |
Topic: Help me with RS232 circuit |
pk178
Replies: 6
Views: 8940
|
Forum: General CCS C Discussion Posted: Thu May 06, 2010 4:30 am Subject: Help me with RS232 circuit |
Hi everybody !
I have a pickit, and I've tested RS232 module on that, it's ok, but when I design my printed circuit, it doesn't work. I tried it 3 times
I use max232 (product of maxim) a ... |
Topic: Help me with Capture Module in PIC16F887 |
pk178
Replies: 1
Views: 3431
|
Forum: General CCS C Discussion Posted: Thu Apr 01, 2010 8:31 pm Subject: Help me with Capture Module in PIC16F887 |
Hi everybody !
I want to use capture module in PIC16F887, this is my simple code :
#include <16f887.h>
#use delay(clock = 4000000)
#fuses LP,XT,EC_IO,INTRC,NOWDT,WDT,NOPUT,PUT
# ... |
Topic: Help me with PWM |
pk178
Replies: 2
Views: 4519
|
Forum: General CCS C Discussion Posted: Thu Mar 11, 2010 9:01 pm Subject: Help me with PWM |
I've already tested it in real circuit, It works well, no matter, the problem is simulator software !!!
Thanks for reply ! |
Topic: Help me with PWM |
pk178
Replies: 2
Views: 4519
|
Forum: General CCS C Discussion Posted: Wed Mar 10, 2010 7:56 am Subject: Help me with PWM |
Hi everybody !
I want to test PWM on CCP1 pin of PIC16F887A, this is my code :
#include <16F887.h>
#device *=16,ADC = 8
#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay ... |
|