Author |
Message |
Topic: dspic33fj comparator |
Mahdi
Replies: 6
Views: 12823
|
Forum: General CCS C Discussion Posted: Thu Jan 05, 2017 1:36 am Subject: dspic33fj comparator |
i can run comparator on pic16 or pic18 but iam confused about dspic comparator...i read datasheet but Did not understand anything about Which 2 pin use for compare...when i read datasheet I saw " ... |
Topic: dspic33fj input capture |
Mahdi
Replies: 3
Views: 6868
|
Forum: General CCS C Discussion Posted: Tue Mar 31, 2015 10:06 am Subject: dspic33fj input capture |
You have your input signal on pin70?. IC3.
Since you are using capture unit 3, this is where the input has to be.
You really should test for the capture event having happened:
if (interr ... |
Topic: dspic33fj input capture |
Mahdi
Replies: 3
Views: 6868
|
Forum: General CCS C Discussion Posted: Tue Mar 31, 2015 8:38 am Subject: dspic33fj input capture |
hi buddies
i want to measure duty cycle and freq of pwm signal with 1khz freq with input capture.
my code :
#include <33FJ256MC710.h>
#use delay(internal=7.37m)
#include <l ... |
Topic: reset microcontroller |
Mahdi
Replies: 3
Views: 6310
|
Forum: General CCS C Discussion Posted: Tue Jan 13, 2015 1:46 am Subject: reset microcontroller |
i use dspic33fj256mc710 and ir2104 to drive half bridge mosfet
i use 12 volt , 150 watt switching power supply and lm2576 3.3 for dspic.
when the mosfet load is 10 watt no problem but when the l ... |
Topic: transmit and receive several int8 variable with ex_sisr.c |
Mahdi
Replies: 8
Views: 9952
|
Forum: General CCS C Discussion Posted: Tue Feb 18, 2014 4:27 pm Subject: transmit and receive several int8 variable with ex_sisr.c |
sorry.i'm beginner in c language.
in previous post i want to see i can send data and receive it and show on lcd.
i know that i should add separator to parse data.
For (i =0; i<=5; i+ ... |
Topic: transmit and receive several int8 variable with ex_sisr.c |
Mahdi
Replies: 8
Views: 9952
|
Forum: General CCS C Discussion Posted: Tue Feb 18, 2014 3:05 pm Subject: transmit and receive several int8 variable with ex_sisr.c |
thanks for reply Mike,Ttelmah,ezflyr.
transmitter:
#include <33FJ12GP202.h>
#use delay(crystal=20m)
#pin_select U1TX=PIN_B14
#pin_select U1RX=PIN_B15
#use rs232(UART1, baud ... |
Topic: transmit and receive several int8 variable with ex_sisr.c |
Mahdi
Replies: 8
Views: 9952
|
Forum: General CCS C Discussion Posted: Tue Feb 18, 2014 10:28 am Subject: transmit and receive several int8 variable with ex_sisr.c |
hi buddies.
i want to send several variable with rs232 protocol and use the sisr.c example code but in dont know how to do it.
how to send int8 and receive.bgetc() function how to work?
tha ... |
Topic: gets() problem |
Mahdi
Replies: 4
Views: 8463
|
Forum: General CCS C Discussion Posted: Sun Dec 29, 2013 12:30 pm Subject: gets() problem |
A number of comments ignoring Proteus....
1) What is the maximum crystal frequency the chip supports?......
This will stop the code working in a real chip.
2) INT_RDA, implies _one_ character is ... |
Topic: gets() problem |
Mahdi
Replies: 4
Views: 8463
|
Forum: General CCS C Discussion Posted: Sun Dec 29, 2013 5:24 am Subject: gets() problem |
hi buddies
i want to send string and receive with uart protocol in isis simulator
transmitter code :
#include <33FJ32MC204.h>
#use delay(crystal=80M)
#pin_select U1TX=PIN_C6
... |
Topic: timer1 and rda interrupt |
Mahdi
Replies: 4
Views: 10314
|
Forum: General CCS C Discussion Posted: Mon Sep 09, 2013 2:06 am Subject: timer1 and rda interrupt |
By default interrupt nesting is turned off by the compiler (see the LST file generated and look under main() ). You don't need to disable interrupts in another interrupt while that is true since all ... |
Topic: timer1 and rda interrupt |
Mahdi
Replies: 4
Views: 10314
|
Forum: General CCS C Discussion Posted: Sun Sep 08, 2013 2:44 pm Subject: timer1 and rda interrupt |
hi buddies.
I want to use rda interrupt for receive uart and timer1 interrupt.
In timer interrupt i use math.c and Math calculations and it have 1.5 ms delay.
My question is how to disable ... |
Topic: full duplex uart problem |
Mahdi
Replies: 14
Views: 22486
|
Forum: General CCS C Discussion Posted: Wed Aug 28, 2013 6:29 am Subject: full duplex uart problem |
As previously posted ....
"Use an interrupt driven receive ring buffer and your problem will go away." by Andrew
Have a look at the example 'ex_sisr.c' in the examples folder to see how ... |
Topic: full duplex uart problem |
Mahdi
Replies: 14
Views: 22486
|
Forum: General CCS C Discussion Posted: Tue Aug 27, 2013 5:10 pm Subject: full duplex uart problem |
this dspic chip (33fj32mc204) not have hardware uart that i can use it
According to the chip data sheet, it has 1 hardware UART and it is located on peripheral pins (as noted above by another ... |
Topic: full duplex uart problem |
Mahdi
Replies: 14
Views: 22486
|
Forum: General CCS C Discussion Posted: Tue Aug 27, 2013 1:24 pm Subject: full duplex uart problem |
Your problem is that you are not using the UART.....
The DsPIC's, have _relocatable_ peripherals. These have to be setup.
You need to use:
#pin_select U1TX=PIN_C6
#pin_select U1RX=PIN_C7
#u ... |
Topic: full duplex uart problem |
Mahdi
Replies: 14
Views: 22486
|
Forum: General CCS C Discussion Posted: Tue Aug 27, 2013 11:08 am Subject: full duplex uart problem |
when i connect 2 18f pic series the uart work but when i connect dspic & 18f its not work and the connection not synchronous..
Please see the files below ....
receive code :
#include < ... |
|