Sign in

username:

password:



Not a member?

Search piclist



Search tips

Subscribe to piclist



piclist by Keywords

12F675 | 16F628 | 16F84 | 16f877 | 16F877A | 16F88 | 18F458 | ADC | AVR | Bootloader | CAN | CCS | CRC | EAGLE | EEPROM | ICD | ICSP | IDE | JDM | LED | Macros | Microchip | MPLAB | PCB-CAD | PIC10F | Pic12f675 | PIC16F84 | PIC16F84A | PIC16F877 | PIC18 | PIC18F452 | PicBasic | PICC | PICSTART | PWM | RS-485 | RS232 | SMT | SPI | UART | USART | USB | Wireless | Wisp628 | Xilinx


Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | Piclist | Questions About Port E in PIC16F877.

A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.

Questions About Port E in PIC16F877. - farroos - Feb 20 23:26:00 2003

Hi everyone,

The schematic for the PIC16F877 shows that port E is represented
with only 3 pins. How can I write a specific value (example '001')to
these 3 pins (as output) ? Can I just give it the hex value "01"?
Also, when I copy the the value of the port to the W register whould
the rest of the register (4-7) get set to zeros?

Another question, may sound silly but i'm learning here. Is there an
easy way to set a single bit (to '1' or '0') in the W register or one
of the ports (without doing a logical AND operation on the whole
byte)? Thanks in Advance
Fares Al-Osaimi






(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )


Re: Questions About Port E in PIC16F877. - Phil Seakins - Feb 20 23:32:00 2003

>The schematic for the PIC16F877 shows that port E is represented
>with only 3 pins. How can I write a specific value (example '001')to
>these 3 pins (as output) ? Can I just give it the hex value "01"?
>Also, when I copy the the value of the port to the W register whould
>the rest of the register (4-7) get set to zeros?
>Another question, may sound silly but i'm learning here. Is there an
>easy way to set a single bit (to '1' or '0') in the W register or one
>of the ports (without doing a logical AND operation on the whole
>byte)?

Might I suggest you download the data sheet for the chip you are interested
in and then READ IT. Instructions for testing, setting and clearing
individual BITS are clearly explained in the Microchip documentation.




(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: Questions About Port E in PIC16F877. - Vasile Surducan - Feb 21 3:32:00 2003

On Fri, 21 Feb 2003, farroos wrote:

> ------------------------------------------------------------------------
> NOTE: The author of this message has chosen not to reveal an email
> address. You won't be able to reply to the author directly.
> ------------------------------------------------------------------------ > Hi every,
>
> The schematic for the PIC16F877 shows that port E is represented
> with only 3 pins. How can I write a specific value (example '001')to
> these 3 pins (as output) ? Can I just give it the hex value "01"?
> Also, when I copy the the value of the port to the W register whould
> the rest of the register (4-7) get set to zeros?
>
> Another question, may sound silly but i'm learning here. Is there an
> easy way to set a single bit (to '1' or '0') in the W register or one
> of the ports (without doing a logical AND operation on the whole
> byte)?

for the ports: set the port direction as output using the tris register
then bsf or bcf that port pin
for any register: bsf/bcf register, bit position

Why don't you try Jal first ?

Vasile




(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Using Flash code space for non-volatile storage - Black Box Systems - Feb 21 6:25:00 2003

Does anyone have any experience using the flash in an
F876 for non-volatile storage (I need more than what
EEROM can provide)

How many times can the Flash be written and read
before failure.

I have one running now that has been cycling about
30000 times without failure so far........

http://mobile.yahoo.com.au - Yahoo! Mobile
- Exchange IMs with Messenger friends on your Telstra or Vodafone mobile phone.





(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )