Search found 6 matches
- 04 Jul 2008 21:03
- Forum: mikroBasic General
- Topic: PIC Timer Calculator - free - Betatesting
- Replies: 42
- Views: 41744
Not really following all your calcs. I have a PIC18F4620, 40Mhz HSPLL, my interrupt frequency is 2500 uS. /* Initialize TRM0 (in T0CON) */ TMR0ON = 1; /* Timer0 1 = on */ T08BIT = 1; /* Timer0 8 bit = 1 */ T0CS = 0; /* Timer0 0= internal clock, 1= T0CKI pin */ T0SE = 0; /* Timer0 1=inc on H to L tra...
- 30 Jun 2008 20:14
- Forum: mikroBasic Wish List
- Topic: Connecting 2 pics 18f8722 through I2C bus
- Replies: 1
- Views: 3832
Re: Connecting 2 pics 18f8722 through I2C bus
Interesting topic for me, as I'm working with I2C on my 'bot. We probably need more data to help you any. What language, C? Might need to see schematic. Are there data and clock line pull-ups on the I2C? Alan KM6VV Hi I have some hardware that is containing 2 pics 18f9722 acting as master / slave An...
- 26 Jun 2008 17:53
- Forum: mikroC for dsPIC30/33 and PIC24 General
- Topic: hex to 16 bit word . . help !!!
- Replies: 4
- Views: 3261
Hi Roger, That's the same thing, I've just used a slightly shorter version. I don't know enough of your program to advise on the int vs long problem. Are you changing types? Perhaps you need a cast (int) to manage it. Another possibility is the addressing of the EEPROM. int pointers will automatical...
- 25 Jun 2008 19:59
- Forum: mikroC for dsPIC30/33 and PIC24 General
- Topic: hex to 16 bit word . . help !!!
- Replies: 4
- Views: 3261
Try:
Alan KM6VV
Code: Select all
firstbyte <<= 8; /* shift it left 8 places to make 0x5000 */
- 12 Jun 2008 18:00
- Forum: mikroBasic General
- Topic: 18F4620 & mE RTC Addon
- Replies: 20
- Views: 10739
I have another board, I’m going to test it there. But I need a REASON it’s failing on this board. I had a ‘scope on the I2C lines which were supposed to be in idle, and once each second I thought I saw a jump. I have a “heart beat” LED that flashes 1/sec, and some tasks (such as sending out logging ...
- 10 Jun 2008 07:18
- Forum: mikroBasic General
- Topic: 18F4620 & mE RTC Addon
- Replies: 20
- Views: 10739
Any new info on this problem? I'm using an 18F4620 and High-Tech C compiler, and my application is to read an ultrasonic ranger (SRF08) for a robot. After about 4-6 minutes, the test looking for SEN low times out, first infrequently, and then solidly. (I have timeout code, and the routine is not all...