Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers

Notices


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 7th November 2003, 12:44 AM   (permalink (permalink))
Default How to use receive interrupt? - urgent

this is my school projcect. i am developing a computer software by microsoft VB and use it to communicate with PIC. i am using pic16F628A and there are one receive interrupt bit on address 8Ch.

i pic basic i try to configure it like this:
PIE1=%00100000

but the interrupt didnt activated when my software sent the data. I am not sure also how to use recieve interrupt. may u guys help me to solve it? or is there any good website to learn how to handle the receive interrupt?
huanyong is offline  
Reply With Quote
Old 7th November 2003, 12:56 PM   (permalink (permalink))
Default

First you'll have to set the USART Transmit and/or receive interrupts on
Transmit interrupt is bit 4 (TXIE) of register PIE1
Receive interrupt is bit5 (RCIE) of register PIE1

Then you'll have to enable the perephial interrupts (bit6 - PEIE) of register INTCON

Then you'll have to enable global interrupts (bit7 - GIE) of register INTCON
Exo is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 04:11 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.