Quantcast
Channel: PIC24 Topics
Browsing all 3494 articles
Browse latest View live
↧

Reading undefined configuration addresses (hdelman)

PIC24F16KL402. Does anyone have any specific information, or personal experience, concerning the reading of undefined bits in the configuration space (F80000 - F8000E)? More specifically... the...

View Article


compiler header include location (seesoe)

i have a project someone sent me and im having trouble building it. it seem that im having some preprocessor errors and or path issues. the project p24FJ16GA004 / xc16 compiler mplab x, im getting the...

View Article


I2C2 on PIC24FJ128GA202 (acarlow)

I've been going a bit crazy trying to figure out why I2C2 isn't working while I2C1 works just fine. Here's my test code: #define MCP9808_ADDR 0x18void main(){ ANSB = 0; I2C2CONLbits.I2CEN = 1; //...

View Article

24FJ256GB106 HID Bootloader not working (perlmonkey)

1. Custom board2. XC16 1.10 (free edition)3. MPLAB 2.204. MLA (c2014_07_22) Hi All, I'm trying to implement a bootloader on existing working code. In MPLABX I have two projects loaded, 1. my code 2....

View Article

PIC24FJ64GA002 RB7 CN23 INPUT ERROR (FedeWar)

Hi All,I've a problem with the pin RB7 of my PIC. I've configured this pin like a input pin with internal pull up disabling INT0.I noticed the voltage of this pin is 4V even if the PIC is supplied with...

View Article


Modify DSWDTPS in main (mavropoulosg)

Hi all, I am looking for a way to modify the DSWDTPS while im in main. I have written the configuration bits on the start of the program to: _CONFIG4(DSWDTPS_DSWDTPS5 & DSWDTOSC_LPRC &...

View Article

PIC24FJ64GB004 - interrupt on PWM falling edge? (Oliver Malham)

Hi folks. I need to detect when the output of the PWM peripheral goes low so that I can switch an external MOSFET in an active rectification application. I've been through the datasheet several times,...

View Article

SD Card in SPI Mode (Kulbir)

16-Bit Core (instructions, reset, WDT, specificati: http://www.microchip.com/forums/fb.ashx?m=828259..

View Article


Stack corruption when a branch instruction is interrupted. (during...

I've been away from PIC's for quite a while now and thought to pick them up again and do a little project: Writing a simple RTOS, just to learn from it. I've looked at multiple sources for 'example'...

View Article


The phantom Byte ?! (A.Alhamed)

Hi I want to ask about the PIC24 Microcontroller Is the phantom byte in the program memory in the MSW a hardwired byte added and connected to GND ? I mean is there a bus connected to GND to represent...

View Article

PIC24FJ256GB110, changing U1BRG does not change UART baud rate. (spiel925)

This is my first PPS device, I never had this problem with non PPS device...

View Article

PIC24HJ504 Timer ISR Behavior (Derek Belle)

Hi, I have run into an issue that I don't really understand what is going on. Maybe someone on here could shed some light onto whats happening. I am running Timer2 as a software timer such that on...

View Article

Unknown pin state after power down (fernando306)

Hello, I am using PIC24FJ128GB106. It has four pins connected to a pair of NPN and PNP transistor that control a 12V output, so when the PIC goes high, 12V appears at the output, and when PIC goes low,...

View Article


[Solved] PIC24FV16KM202 configuration bits effect on ICD with PICkit 3...

Dear All,I had a brand new (never programmed) PIC24FV16KM202 (28 pins) on a breadboard. I tried it with the sample code from the "Microstick for 5V PIC24 K Series", compiled with the XC16 compiler 1.22...

View Article

PMP tutorial (friesen)

After some sweat and (almost) tears figuring out the pmp, I though I would leave some of what I learned, and leave this open for comments and corrections. 1. The PMP is a module similar to the UART in...

View Article


24FV32KA301 ADC Just reading noise (smh)

I am having problems with the ADC on a 24FV32KA301. My code works fine on the 3.3v 28pin version (24F32KA302) But not on the 5v 20 pin version. I initialise the ADC with:- void initadc (void){...

View Article

PIC24EP512GU810 Oscillator with PLL Help (williajl43)

Hello, I have been fighting for two days to get the frequency Fcyc correctly set for 70MIPS operation. In the past, I have used the PIC24HxxxGP with no issues getting the currect frequency. This is the...

View Article


Input Capture to Measure Duty Cycle? (jschaenzle)

I am using a PIC24FJ64GA002. I need to measure the duty cycle of an input pin. The input is a pulse width modulated square wave with a base frequency of about 40 Hz. I am pretty sure that the best way...

View Article

Configuration register problem, beginner (tomash)

How do I set the configuration bits on a PIC24FV32KA301? I have seen that there are configuration registers FBS, FGS and so on but how do you set them and where? I have included the header file for my...

View Article

Syntax for setting a single port pin (tomash)

Which syntax to use for setting a single port pin on a PIC24FV32KA301? On an earlier project using a PIC16F1825 and the Hi-Tech C compiler I could use RA3 = 1 to set bit 3 on port A but that does not...

View Article
Browsing all 3494 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>