Hi,
Thanks a bunch Jerry. I will play with it and see how it works so I can better understand this process. This has been a good learning experience about Interrupts for me. Hopefully I will see charcters come in while the LED Blinks.
Search found 136 matches
- Wed Mar 16, 2011 6:25 pm
- Forum: User Modules
- Topic: Interrupts
- Replies: 21
- Views: 10555
- Wed Mar 16, 2011 4:45 pm
- Forum: User Modules
- Topic: Interrupts
- Replies: 21
- Views: 10555
trial # 2
Hi, Ok I made a tweak to the code posted in the earlier message. I looked in ISSRX.bas for the Initialize routine and it does a Enable(OnRX) so I changed my ReadSerial event to match the name. It did not seem to make a difference. I think my RX Interrupt is not getting turned on, but I am unsure how...
- Wed Mar 16, 2011 4:05 pm
- Forum: User Modules
- Topic: Interrupts
- Replies: 21
- Views: 10555
Few More Questions
Hi Jerry, I had a couple more questions if you had time to answer them. I went through my routine, and made the changes you pointed out. I now get the LED to blink as expected every 1 second. I also went back to the ISRRX routine using ReadSerial() from the examples I found previously. The part I do...
- Wed Mar 16, 2011 2:03 pm
- Forum: User Modules
- Topic: Interrupts
- Replies: 21
- Views: 10555
Thanks Jerry
Hi,
Thanks a bunch for evaluating this for me and breaking it down. I will work through it and see where I get. I will try to stay on this horse and see where it takes me
Thanks a bunch for evaluating this for me and breaking it down. I will work through it and see where I get. I will try to stay on this horse and see where it takes me
- Tue Mar 15, 2011 12:50 pm
- Forum: User Modules
- Topic: Interrupts
- Replies: 21
- Views: 10555
Interrupts
Hi All, I am currently on a quest to get a simple timer working toggling a LED, and I ran across a wonderful piece of code written by Darryl Quinn that seems to do the job quite well. I did however run into a issue now when I try to add in a ISRRX module. It seems that if I leave in the ENABLE(ISR) ...
- Mon Mar 14, 2011 8:22 pm
- Forum: User Modules
- Topic: UART TOOL
- Replies: 23
- Views: 11124
Suggestions
Hi Dave, Thanks for the input. I copied your code and modified it for my part and oscillator, and all I get now is a RED LED on all the time. This is a step in the right direction, but I was wondering if your LED toggles. I guess I am going to have to take baby steps till I can narrow down what is r...
- Mon Mar 14, 2011 7:53 pm
- Forum: User Modules
- Topic: UART TOOL
- Replies: 23
- Views: 11124
Hi Guys, Thanks a bunch for the help. I made a few tweaks but still no LED toggle. I changed the code to turn on the red LED on the first timer interrupt and also to tuen on the green in 5 interruputs and hold them in this state. I still do not see LED's turn on. Any ideas ? This should not be this ...
- Mon Mar 14, 2011 5:21 pm
- Forum: User Modules
- Topic: UART TOOL
- Replies: 23
- Views: 11124
Timer Example Attempt
Hi, I threw a simple test together after reading the examples everyone posted and what I could find elsewhere. Below is a simple program that is suppose to toggle the RED LED every second, and the GREEN LED every 5 Seconds. Any idea why I see no LEDS toggle ? Thanks Device = 18F25J10 // Setup the de...
- Mon Mar 14, 2011 11:51 am
- Forum: User Modules
- Topic: UART TOOL
- Replies: 23
- Views: 11124
Thanks
Thanks a bunch Jerry. I will play with the software timer stuff and see if I can figure it out. Really all I need to do is run a counter in the background incremented off the timer, and compare it on timeout to a known value. If it matches then I can do something and start counting again. Waiting to...
- Sun Mar 13, 2011 2:48 pm
- Forum: User Modules
- Topic: UART TOOL
- Replies: 23
- Views: 11124
Simple Timer
Hi Jerry, Well thanks to all you and Jon's help I was able to finally RX packets and decode them. I figured out that besides my coding errors the data coming in was inverted probably since I am using RS-485 hardware to interface too. Anyway I wanted to ask if there was a simple timer0 routine out th...
- Sat Mar 12, 2011 5:24 pm
- Forum: User Modules
- Topic: UART TOOL
- Replies: 23
- Views: 11124
Thanks a Bunch
Hi Jerry and Jon, Thanks a bunch for all the help. I just did not understand how the PICKIT2 unit worked. I guess I am also having a hard time understanding the UART interrupt stuff to. I will play with it this weekend and try not to bug you guys too much. Is is possible to also run a timer 0 interr...
- Sat Mar 12, 2011 1:15 pm
- Forum: User Modules
- Topic: UART TOOL
- Replies: 23
- Views: 11124
Thanks
Hi Jerry, Thanks for the input. I did not realize this was how the ISRRX routine worked. I will try to play with it and rearrange some stuff. The PICKIT2 connects to the 6 pin programming connector so I have to assume the software fetches the RX data on the RX pin and displays it in the UART tool. I...
- Fri Mar 11, 2011 7:10 pm
- Forum: User Modules
- Topic: UART TOOL
- Replies: 23
- Views: 11124
Hi Jerry Below is the ISRRX routine. It gets called in the main code After it sets a packetflag I then use the If statement to verify the first few bytes are correct. The problem is I see the LED flashing indicating the ReadSerial() got called, but I never see any data in my PICKIT2 UART window, and...
- Fri Mar 11, 2011 5:35 pm
- Forum: User Modules
- Topic: UART TOOL
- Replies: 23
- Views: 11124
Hi, Well I am stumped then. I can see the LED come on when a packet is received in the routine looking for 12 bytes in length, but when I try to compare the start of the packets with a constant it never matches. I thought I could use the PICKIT2 to view what it received, but that did not work out so...
- Fri Mar 11, 2011 1:28 pm
- Forum: User Modules
- Topic: UART TOOL
- Replies: 23
- Views: 11124
UART TOOL
Hi All,
It just dawned on me that the packet is stuffed into the buffer backwards since the (SdataSize - 1) decrements the byte counter. Am I right about the packets being stored backwards ? It still does not explain why I do not see anything on the RX pin using the PICKIT2 module. Any ideas ?
Thanks
It just dawned on me that the packet is stuffed into the buffer backwards since the (SdataSize - 1) decrements the byte counter. Am I right about the packets being stored backwards ? It still does not explain why I do not see anything on the RX pin using the PICKIT2 module. Any ideas ?
Thanks