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.

[SOLVED] ADC and keyboard interfacing to PIC

Status
Not open for further replies.

Raady Here

Full Member level 5
Full Member level 5
Joined
Jun 8, 2013
Messages
242
Helped
26
Reputation
52
Reaction score
26
Trophy points
28
Location
India
Visit site
Activity points
1,571
Hi,

I am working on a project where I will be monitoring AC voltages to shut down my motor at low voltages, and I use keypad to enter the limit of AC cutoff voltages.

Keypad will be working if disable ADC ( // ADCON1bits.ADON=0 ), but same time ADC doesn't work if its disabled.

How could I keep both working ? Any ideas , any suggestions helpful !

Regards,
Raady.
 

How did you aligned the pins? is there a separate pins or multiplexing?

if using diff pins then configure them as digital....
 

Attachments

  • untitled.JPG
    untitled.JPG
    60.8 KB · Views: 70

Hi,

I am working on a project where I will be monitoring AC voltages to shut down my motor at low voltages, and I use keypad to enter the limit of AC cutoff voltages.

Keypad will be working if disable ADC ( // ADCON1bits.ADON=0 ), but same time ADC doesn't work if its disabled.

How could I keep both working ? Any ideas , any suggestions helpful !

Regards,
Raady.


Keyboard is USB or PS/2 ?


Interfacing 4×4 matrix keyboard and showing pressed key on 16×2 LCD
https://bharatbalar.wordpress.com/2...keyboard-and-showing-pressed-key-on-16x2-lcd/

In code enable ADC and make calculation with conditions.



Best regards,
Peter
 

I am working on PIC30F5011/MPLAB 8.8V

I have keypad 4x4 matrix connected on PORTB 0-7 pins with 0-3 with pull down resistor and 4-7 with pull up resistors,

I am monitoring ADC for 3 phase voltages with connections made PORTB 13,14,15 pins simultaneously with
VCFG - 000
CSCNA - 1
SMPI - 0010
CHOSA - 0 // Channel 0negative Vref-
and TIMER3 for tigger source.

I have developed both modules(ADC and Keypad separately) individually and both are working fine, but to integrate them I not getting any idea !

- - - Updated - - -

Post circuit and code.

If details aren't enough I will post circuit !
 

The ways is multiplexing............ when you entering into the function key pad initialize as key pad and when you entering in to the function ADC, configure them as analog(usually all connections will be open in a 4x4 keypad)..


Code C - [expand]
1
2
3
4
5
while(1)
{
keypad_mon();
ADC_mon();
}

 

The ways is multiplexing............ when you entering into the function key pad initialize as key pad and when you entering in to the function ADC, configure them as analog(usually all connections will be open in a 4x4 keypad)..


Code C - [expand]
1
2
3
4
5
while(1)
{
keypad_mon();
ADC_mon();
}


Nice, probably it might work , I would give a try.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top