Need Help (Can't used AN8 and AN10 on SK40C)

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

Need Help (Can't used AN8 and AN10 on SK40C)

Postby hafiz99 » Thu Feb 02, 2012 9:30 pm

Hello To all Pros :D :D i cant used AN8 and AN10 using PIC18F4580 with SK40C Because of SW1(RB0) and SW2(RB1) this circuit switch circuit let the current flow into PIC when switch is Open. =.=

Why they Design like this??? how to used AN connection like this????
The Port B0 and B1 already have 4.71v =.=

Can someone help me because i need to used 10 Analog input
hafiz99
Newbie
 
Posts: 13
Joined: Mon Jan 09, 2012 1:38 pm

Re: Need Help (Can't used AN8 and AN10 on SK40C)

Postby ABSF » Fri Feb 03, 2012 4:43 am

The SK40C was originally designed for 16F877A and later some of the low end 18F PIC chips were also taking advantage of it. Maybe its time for Cytron to come out with SK40D that would have all the switches and LED which can be deselected by jumpers.

The easiest way to solve your problem is to remove R5 and R6 (10K resistors) next to the UART socket location. But then the SW1 and SW2 on RB0 and RB1 would not function anymore.

I was also surprised to see that there was no diode in series with the resistor connected to MCLR as in the schematics. The manual was V1.2 DEC 2010.

Allen
The next war will determine NOT who is right BUT what is left.
User avatar
ABSF
Professional
 
Posts: 810
Joined: Wed Nov 10, 2010 9:32 am
Location: E Malaysia

Re: Need Help (Can't used AN8 and AN10 on SK40C)

Postby kl84 » Fri Feb 03, 2012 7:06 pm

hafiz99 WROTE:i cant used AN8 and AN10 using PIC18F4580 with SK40C Because of SW1(RB0) and SW2(RB1) this circuit switch circuit let the current flow into PIC when switch is Open. =.=

Why they Design like this??? how to used AN connection like this????
The Port B0 and B1 already have 4.71v =.=

I guess they have no choice but to give up some pins for the basic circuit like switch and led. Afaik PORTD is reserved for LCD. For PIC16F877A, RB0 and RB1 don't have AN function. For PIC18F4550, out of all the I/O pins only analog has the most pins available and I've never use up to 10 analog pins before. Usually less than 5 AN pins are used. Haha...may be you are that 1% (or less?) who used up to 10 AN pins. If they choose other pins for switch and led, they will receive my complain then ;)

hafiz99 WROTE:Can someone help me because i need to used 10 Analog input

Do as ABSF suggested or cut off the track and connect it to other pin you wish to use.

ABSF WROTE:Maybe its time for Cytron to come out with SK40D that would have all the switches and LED able to be deselected by jumpers.

Good idea...
User avatar
kl84
Amateur
 
Posts: 166
Joined: Thu Jul 08, 2010 12:14 pm

Re: Need Help (Can't used AN8 and AN10 on SK40C)

Postby robosang » Sat Feb 04, 2012 7:41 pm

Yup, most of old PIC does not have more than 8 channel of ADC. I guess why they use RB0 and RB1 as switch input might because the INT0 and INT1 is located there, that is external interrupt :) Of course they will need to choose some of the pin to use as switch and LED as basic input and output, else it will not be basic board :twisted: , it will become a breakout board!

Nonetheless, Allen suggestion is good. Maybe a selector to enable and disable the switches and LEDs connection, just like what they did for Vusb and LCD backlight?

Yup, notice they din put diode at MCLR pin, I guess the resistor is big enough to clamp the voltage during programming.
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 1 guest

cron