PIC24FJ64GA102 : I/O pins not working as i would to drive an actuator (nrobin)
Hello, i would like to drive an actuator. I used 2 signals Verin_Sens (pin RB2) and Verin_ON (pin RB11).The driving of these 2 signals are done in _SPI1Interrupt()To know the position of the actuator,...
View ArticlePIC24FJ1024GB610 no PWM on RP1 (DanielPLongo)
Not sure what I'm missing. I even explicitly made RP1 (RB1) an output although the reference manual says OC1 controls it. Here is my code: #include #include using namespace std;/* * */ int main(int...
View ArticlePIC24 ADC example code for PIC24FJ1024GB610 on the 16/32 Explorer Board...
I thought I would post some working ADC code with some helpful hints for those using the PIC24FJ1024GB610 on the 16/32 Explorer board. Please read the comments in the code and let me know if something...
View ArticleGetting Target Device ID (0x0) on Explorer 16 board (dvtronic)
I'm using an Explorer 16 devt board with a PIC24FJ256GB110 PIM. When I attempt to download firmware onto this device via MPLAB X IDE, I keep getting a "Target Device ID (0x0) is an Invalid Device ID"...
View ArticlePIC24FJ128GC010 UART IrDA (caveerappan1)
Hi All, Sorry if a similar question has been asked before - have searched the forum, but nothing came up. I am trying to use the builtin IrDA encoder/decoder on the PIC24FJ128GC010. I am using UART1...
View ArticlePIC24FJ256GA106 and PIC24FJ64GA102 : math library (nrobin)
Hi, i use inclination sensor for my application. In order to determine angle, i would like to use asin() function.In which library is defined this asin() function ? Thank you..
View ArticlePIC24FV16KM204 ADC is not working (PICStarter)
Hello community, I am planning some projects at home. After some research I have chosen the PIC family micros for my projects. In my first project I want to read 8 AD signals. The signals are connected...
View ArticleCWG undefined error in PIC16F1769 microcontroller (sanket.meher111)
HI, I am getting CWG1CON1 undefine error using PIC16F1769 microcontroller. PIC16F1769 has support of CWG given in datasheet,then aslo it is giving undefined error. I tried using XC8 compiler V1.45 and...
View ArticleTrying to create a phase shift between two PWM signals on different timers...
I need to create a variable phase shift between two PWM signals -- one running off of Timer 2 on a PIC24FJ256GB100, and another one driven by Timer 4. Right now, they look like the signals in the...
View ArticleTimer 1 won't work with PIC24 simulated in proteus (vra)
Hello everyone, I have a problem here, I am using timer 1 of the PIC24FJ256GA106 in Proteus configured with the external oscillator, I have read several times all the configuration I have to run timer...
View ArticleSPI Transmit with DMA on PIC24HJ256GP610A stalls after transmitting 3 bytes...
I'm trying to use DMA with SPI Transmit to minimize the gaps between transmitted bytes. The SPI is writing to flash memory so I've set things up for 8-bit data, one shot, no ping-pong, register...
View ArticleTrying to get _CNInterrupt() to be executed (dvtronic)
I have an application wherein I need an ISR to execute when a change is detected on either CN4 or CN5 (RB2 and RB3). For some reason though, the ISR isn't being called. Any idea what I might be...
View ArticleAlarm Granularity on PIC24 with RTCC (fsonnichsen)
I am supplanting an older timing board with a PIC18 and separate RTC chip. I thought it would be efficient to move to one of the PIC24s with and RTCC. Reading the doc I see: "Alarm-Configurable for...
View ArticlePIC24 Timer interrupts in assembly (Cypress)
I'm new to assembly programming. I'm working with the PIC24EP512GP202 microcontroller. So far, I've figured out how to do some simple things in assembly; however, I haven't figured out how to implement...
View ArticleLearning PIC24F assembler. (peterg1000)
Hi, I've been trying to get familiar with 24 bit PIC assembler over the last few days - quite a few differences to the PIC18 devices I am familiar with!! Initially I was totally mystified as to how to...
View ArticlePIC24 Sending integer over USB with MCC source files (DanielPLongo)
I used MCC to configure the PIC24FJ32GB002 for USB communication to PC. I can send strings to a PuTTY session using the various putUSBUSART function calls as found in usb_device_cdc.c ( e.g. '...
View ArticleHOW TO READ ON-CHIP INTERNAL TEMPERATURE (Gouthami c v)
Hi everyone,I need to display on-chip internal tempearture in PIC24EP256GP206, for his i have selected CTMU AND ADC.I have attached code here i am not able to caluclate exact temperature from result...
View ArticleINTERFACING PIC24J64GB106 WITH MAX3421E (shekhashoukath)
hai, my application needs an interface between max3421e and PIC24FJ64GB106 via spi. max3421e has to act as usb host. the max3421 is connected to evb lan7500 lc, board . finally the data from pic will...
View ArticlePosition counter value is not changing in QEI(PIC24Ep512mc202)?.. (Manish kumar)
Hello Every one, i am using pic24ep512mc202 for interfacing the encoder module. I have initialize QEI Module but position counter is not getting incremented.please suggest me where i am making wrong. i...
View ArticlePOSCNT REGISTER VALUE NOT CHANGED (Manish kumar)
hello every one Iam using pic24ep512mc202 controller to interface qei module using incremental encoder …….. uart is working fine ...but my poscnt register values are not changing according to my pulses...
View Article