Electronic Projects, forums and more.

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


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, 01:44 AM   (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  
Old 7th November 2003, 01:57 PM   (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

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 07:52 PM.


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

eXTReMe Tracker