See:
10k is a good value here.
{Should I mention weak pull-ups?}
Now that gets me to thinking: Here is a neat trick to get a 'push-pull' output from two PORT A pins:1: define them as analog (ADCON1)
2: TRIS them as outputs.Now, when you BSF either of them the other will automatically be cleared.
Any time you read the port you will reset the 'current value' condition for the pins.So, if you take an interrupt and read the port to see what changed it will reset the interrupt condition. This is good.
Where you get in trouble is if _another_ change in the input occurs just at the moment you are reading the port. In this case you can miss it.
But, if you know for certain that a second change on any of the inputs cannot occur before you get into your interrupt handler and read the status you will be ok.
see also:
Comments:
Questions:
I am trying to use a pic16c74 in the Slave parrallel port mode where portd can be read and written to by another processor. I want to read the IBF input buffer full but after writting to the portD the IBF bit never goes high. Am I missing something?
file: /Techref/microchip/portpins.htm, 4KB, , updated: 2010/2/25 16:40, local time: 2024/10/13 19:14,
44.192.95.161:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.piclist.com/techref/microchip/portpins.htm"> PIC Microcontroller port pins</A> |
Did you find what you needed? |
PICList 2024 contributors:
o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to www.piclist.com! |
.