Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

way to see the adc value in pic16f785

Status
Not open for further replies.

prakashvenugopal

Advanced Member level 1
Joined
Jun 1, 2011
Messages
473
Helped
15
Reputation
30
Reaction score
15
Trophy points
1,298
Activity points
4,973
Hi all,

what are the ways to see the Adc value in PIC16F785.? I am using MPLAB IDE V8.92.

Regards,
V, Prakash
 

Hi,

Yes. I have to see the adc value in MPLAB without using the debugger option.
how to do it?

Regards,
V. Prakash
 

To save it into EEPROM and to find it there (View-EEPROM).
 

Hi,

If i am storing the real time adc value in EEPROM. will we able to see the EEPROM value without debugger option from PIC16F785?

Regards,
V. Prakash
 

You want to see ADC results real time? Than storing in EEPROM won't help.
 

In PIC microcontrollers, in-circuit debugging is achieved through the same pins that are used for In-Circuit Serial Programming (ICSP), i.e. ICSPDAT (or PGD), ICSPCLK (or PGC), VPP/MCLR (programming mode voltage), VDD (power supply voltage), and VSS (Ground). This allows manufacturers to integrate ISCP programming and in-circuit debugging features into a single device. During debugging, the ICD device adds an additional block of code (along with the user application) to the target microcontroller’s program memory, which interacts with the debugging application and sends variable values, internal register values and other details to the PC through the same programming cable.
For example, Microchip’s MPLAB ICD2 and ICD3 are both programmer and real-time debugger for selected PIC MCUs and dsPIC DSCs. The functionality of the ICD is controlled by the MPLAB Integrated Development Environment (IDE) application software running on the PC. During debugging all available features of the target microcontroller are accessible interactively through the MPLAB IDE interface. These functions allow you to run the program in single-step mode, insert breakpoints into the program, examine the registers and variables, and modify them if desired.
Although an ICD is an invaluable debugging tool, it does not come at no cost. The two main disadvantages of ICD are: 1) it uses some memory of the target microcontroller, and 2) it occupies a few I/O pins of the target microcontroller to communicate with the PC. Therefore, while debugging, the PGD, PGC, and MCLR pins of the target microcontroller cannot be used for any other purposes.
- See more at: https://embedded-lab.com/blog/in-circuit-debugging-of-pic-microcontrollers/#sthash.jbyvYZv6.dpuf
 
That was a main reason why I will never use pic anymore. Never knows will debug works or you will need buy another debugger. And how many bugs you will get on this way.
 

sorry!...You are changing thread topic. He want to see ADC value only and this way is sufficient for this purpose. Perhaps it's not a best but it works.
 

Hi,


while debugging, the PGD, PGC, and MCLR pins of the target microcontroller cannot be used for any other purposes.


In my target board i had used this PGD and PGC as I/O pin. i cannot debug with this target board? Please let me know.

Regards,
V. Prakash
 

I always use an LCD to print data and "OK to here" messages in my programs. Even if the final product doesn't use an LCD.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top