Thank you for the advice guys.
Yes I got a pullup on the MCLR pin......but, I discovered that it was not soldered very well. It was floating.
I can get-on now with my project now.
Thanks a lot.
Regards
Francesco
Search found 41 matches
- Sat May 22, 2010 1:17 pm
- Forum: Compiler
- Topic: Desperately seeking Help. PIC18F242 Resets!
- Replies: 5
- Views: 3535
- Sat May 22, 2010 7:07 am
- Forum: Compiler
- Topic: Desperately seeking Help. PIC18F242 Resets!
- Replies: 5
- Views: 3535
- Fri May 21, 2010 6:57 pm
- Forum: Compiler
- Topic: Desperately seeking Help. PIC18F242 Resets!
- Replies: 5
- Views: 3535
Desperately seeking Help. PIC18F242 Resets!
Hello guys, please take a look at this simple code ---------------------------------------------- Device = 18F242 Clock = 4.0 WDT(OFF) Output (PORTA.0) High(PORTA.0) --------------------------------------------- I am getting a regular square wave output. This is a mistery to me. I have tryed everyth...
- Wed May 05, 2010 5:32 pm
- Forum: Compiler
- Topic: Help with Fan Control
- Replies: 0
- Views: 2751
Help with Fan Control
Hi there, I would like to control a 4-pin fan (with PWM facility). I can see how to implement a PWM of my choice, but I am lost when I try to read read the tacho from the fan. I need to to count the number of pulses so I can change the PWM value. I suppose I need to set a timer, then read the number...
- Sun Jul 26, 2009 7:50 pm
- Forum: Compiler
- Topic: Cannot pass pass variable to 'Toggle' function.
- Replies: 2
- Views: 2367
- Sun Jul 26, 2009 6:25 pm
- Forum: Compiler
- Topic: Cannot pass pass variable to 'Toggle' function.
- Replies: 2
- Views: 2367
Cannot pass pass variable to 'Toggle' function.
Hi there, I have a bank of LEDs connected on PORTB that I want to toggle at random by passing a variable to the 'Toggle' function. For example ................................... Sub Light(x as bit ) toggle(x) End sub Light(portb.2) Light(portb.5) ............................ The code above gives th...
- Sat Jul 18, 2009 2:08 pm
- Forum: Compiler
- Topic: How to split a Word into two-8bit Bytes.
- Replies: 3
- Views: 3079
- Sat Jul 18, 2009 11:35 am
- Forum: Compiler
- Topic: How to split a Word into two-8bit Bytes.
- Replies: 3
- Views: 3079
How to split a Word into two-8bit Bytes.
Hi there, I am stuck on a really simple operation. :? I have a value X I need to to split it into two byte for saving into memory locations. =================== X As Word Low_byte, High_byte As Byte X= %1111001101110101 // for example Low_byte= X AND 255. // It works I get the lower byte of X High_b...
- Wed Jul 08, 2009 7:17 pm
- Forum: Compiler
- Topic: Help in How to detect an Overflow.
- Replies: 8
- Views: 4850
dman776, Thank you for the help Yes the solution was to check the carry flag in the status register. ........ If Status.0=1 then /// the carry flag is set indicating an overflow! do something End If ................... Not being very familiar with a basic compiler, I was not aware you could check th...
- Tue Jul 07, 2009 9:20 pm
- Forum: Compiler
- Topic: Help in How to detect an Overflow.
- Replies: 8
- Views: 4850
Hi guys, I need to clarify my question. X is defined as 'Byte'. This mean it can only hold 255 max. I x is incremented by 2. Therefore when x=254 and the counter increments by 2, x=0. Hence I cannot say 'If x > 255...'. Thats why i need to check if it has excedded 255 (overflow). Any idea? Regards F...
- Mon Jul 06, 2009 7:17 pm
- Forum: Compiler
- Topic: Help in How to detect an Overflow.
- Replies: 8
- Views: 4850
Help in How to detect an Overflow.
Hi guys,
I need some advice regarding this:
I have a counter, X, as a Byte. (It needs to be a Byte)
The counter increments and eventually it will be greater than 255.
I want to detect this overflow. How do I do this without using assembly code?
Thanks in advance.
Regards
Francesco C.
I need some advice regarding this:
I have a counter, X, as a Byte. (It needs to be a Byte)
The counter increments and eventually it will be greater than 255.
I want to detect this overflow. How do I do this without using assembly code?
Thanks in advance.
Regards
Francesco C.
- Wed Jul 01, 2009 4:47 pm
- Forum: Modules
- Topic: Help in formatting Binary counter for LCD display.
- Replies: 2
- Views: 2553
- Tue Jun 30, 2009 8:13 pm
- Forum: Modules
- Topic: Help in formatting Binary counter for LCD display.
- Replies: 2
- Views: 2553
Help in formatting Binary counter for LCD display.
Hi guys, I am using the commad: BinToStr(Number) to output a binary number to an LCD display. The problem is this. Say I want to display a binary number (8bits) counting from 0 to 127, the LCD display will show nothing when the count is zero. Then, as the counter increments , will show '1' and no ze...
- Sat Jun 13, 2009 4:14 pm
- Forum: Modules
- Topic: Usart Command Stops SPI
- Replies: 0
- Views: 3105
Usart Command Stops SPI
Hi guys, can you help me to understand this problem? The code below is under development. It send a command to serial memory device. The memory device then replies with its ID code. The code worked fine until I introduced the 'USART.setbaudrate' command. Now I cannot get the reply from the memory de...
- Wed Jun 03, 2009 4:24 pm
- Forum: Modules
- Topic: How to red a string using SUART?
- Replies: 2
- Views: 2823