PIC24 AD1CON1bits.DONE never goes hi, Program stuck at line "while...
int adc_read(int channel) { AD1CHSbits.CH0SA = channel; AD1CON1bits.SAMP = 1;//start sampling AD1CON1bits.DONE = 1; while (!AD1CON1bits.DONE);// wait for conversion to complete return ADC1BUF0; // read...
View ArticleCant get pin RB15 on PIC 24F32KA301 to go high (ntmid8r)
Hello everyone. I've been using the 24F32KA301 for a while now in various projects. In my latest project, I toggle pins RB13 and RB15 back and forth. I can't get RB15 to do anything; RB13 toggles just...
View ArticleUnused SOSCI pin (stinf)
Hi!On my new project with PIC24FJ128GA308 I don't need pin 59 (SOSCI). As it cannot be configured as an output, what is the safest way to treat it? Should I use a weak pull down (say, 50 or 100 kohm)?...
View ArticlePIC24F04kl100 SPI Slave Questions (Schnarek)
Hello guys I have a problem with my SPI-Slave the buffer doesn't receive the data from the Master. The Master works fine (pay attention to the picture). I have a routine which retrieve if the buffer...
View ArticleICSP pin question (tomash)
Which pins should I use for data and clock for PIC24FV32KA301 for programming the chip from a PICkit3? If I look at the data sheet for the processor there are 3 sets of pin pairs, PGECx and PGEDx where...
View ArticlePIC24 DA integrated graphics RGB mode mystery (ILI9341) (Lucis)
I am using the PIC24FJ256DA210 development board (DM240312). This board directly interfaces to the "Graphics Display Truly 3.2in. 320x240 Board" (AC164127-4). This display uses a SSD1289 driver. I need...
View ArticleANSx confusion (tomash)
I'm going to use analog inputs AN0 (RA0), AN1 (RA1), AN12 (RB12) and AN13 (RA2). Which bits should be set in ANSA and ANSB?/Tomas..
View ArticleUART Problem. URXDA bit not getting set ( PIC24F ) (Rahul Kulkarni)
Hello, I am trying to transmit and receive character. At the output of RS232 TX and RX are shorted. I can see the waveforms at TX and RX Pin. While debugging I see that the contents of U1RXREG are...
View Articlepic24 developmentboard for android starter kit (leader)
has anyone had problems trying to get the demo for the pic24 development board for android starter kit to work on a galaxy duo running icecream sandwich 4.0 as nothing seems to happen when i plug the...
View ArticleUSB Bootloader for PIC24F (adwaitnd)
Hi, I am designing a custom board for a PIC24F64GB004. One of the good things about it is the USB peripheral. It would be good if the chip could be flashed directly via USB. I realize such a bootloader...
View ArticleError in document 33904d.pdf (PIC24FJ64FB004)? Disagreement in "WPEND"...
Hello, I am viewing this document, "DS39940D" copyright 2010 located here: http://ww1.microchip.com/downloads/en/DeviceDoc/39940d.pdf There is disagreement concerning WPEND. On page 290: "The WPEND bit...
View ArticlePIC24 critical timing issue: compensating for skipped instructions using...
Help! I'm programming PIC24EP-family microcontrollers in assembly. The task requires very carefully timed code; that's why I'm using assembly instead of C. In my program, I need to do something like...
View ArticleRegrding U1RxRDA bit (winikul)
hello I am using PIC 24 FJ256DA210. I am using UART1 and trying to send a character in a while loop The Tx,Rx are shorted to each other. I am debugging the code and i am receiving the Same character at...
View ArticlePORTB pins 10, 11, 12, 13 don't work as digital I/O (PIC24FJ256GB106)...
Hello, I've "#pragma config JTAGEN = OFF" in my code, but pins don´t work as digital I/O. Analog is disable (AD1PCFG = 0xFFFF). Any idea? Thanks,Rogerio AM..
View ArticlePIC24's "internal ADC buffer pointer" (sjb741)
PIC24FV32KA302 Hi I have code similar to DS39739B-page 51-45 Example 51-6: Sampling and Converting a Single Channel Multiple Times However, the code is in an ISR. When I want to do an offset...
View ArticleProblem with USB bootloader (Jose Miguel Fernandez)
Hello everyone. I'm developing with IDE v2.10 MPLAB X and X16 compiler on PIC24FJ256DA210. I have the following problem with the USB Bootoloader. From ICD3 recorded the demo project bootoloader content...
View ArticlePIC24 external interrupt INT1 problem (zijo)
PIC24FJ64GB002 compiles with XC16 ok but it never interrupts when triggered by stimulus switch on port RA1.If I set bit to IEC1 = 0x0010; then it goes to interrupt function.Did I miss something?...
View ArticlePIC24HJ64GP510 Restarting Continuous DMA Channel (mwill195)
Hi all, I am having a bit of difficulty with DMA on the PIC24HJ64GP510. My project has been running for several years with DMA channels 0 and 1 for CANbus and DMA2 for ADC. I am now using DMA3 for UART...
View Articleregarding ISR (winikul)
hello I am using PIC 24FJ256Da210, I am trying to read the data transmitted at serial port ,Tx Rx pins are shorted The problem is though the U1RxIF flag is set ,the Program is not entering the Service...
View Articleprintf and UART (tomash)
I would like to use printf to send data to an UART in PIC24FV32KA301. I was very surprised to see that data was output from the UART. How does the compiler (XC16) know that it should use the UART? Does...
View Article