Search found 5 matches
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable- Sat Apr 01, 2017 11:16 pm
- Forum: Your projects
- Topic: Bullet Train game
- Replies: 4
- Views: 18849
Re: Bullet Train game
I'm not sure why I do this, but from looking at that code this is what I see... DIM red0 AS portc.0 DIM swt1 AS portb.0 DIM swt2 AS portb.4 // make ALL pins OUTPUTS, so can't read any switches !!!!! TRISB = %00000000 TRISC = %00000000 TRISA = %00000000 // This sets the "switch inputs", which are rea...
- Fri Apr 22, 2016 11:57 pm
- Forum: PIC Tutorials
- Topic: led flasher problem
- Replies: 14
- Views: 46651
Re: led flasher problem
is it possible to program multiple microcontrollers at once using the same pickit2? No, you'll have to connect up to each one individually and program it. If you have multiple pics you might want to ask yourself if it'd be easier to use a single chip with more IO pins. Usually that's the better way.
- Mon Apr 18, 2016 6:14 am
- Forum: PIC Tutorials
- Topic: led flasher problem
- Replies: 14
- Views: 46651
Re: led flasher problem
I mostly cleaned it up because MPASM can be picky about what goes where... you should make sure column 1 is only used for labels and I like to delineate them using ':' to make it clear. still struggling to separate what lines of code are specific instructions from the chip and what lines are standar...
- Sun Apr 17, 2016 11:43 pm
- Forum: PIC Tutorials
- Topic: led flasher problem
- Replies: 14
- Views: 46651
Re: led flasher problem
Are you sure that the leds are stuck on, or is it just appear that way? The 'delay' routine only provides 1.5ms of delay at 4MHz so I doubt you'd be able to see much of anything. I've cleaned up the code a bit and added a 'longdelay' routine. Change the 'call delay' to 'call longdelay' and see if th...
- Tue Mar 29, 2016 1:24 am
- Forum: Your projects
- Topic: DC Motor Controller
- Replies: 17
- Views: 46142
Re: DC Motor Controller
Just to correct the typo... 11V/400uA gives us 27.5 K ohms You won't get the full 12V drive out of the ne555, and the current gain of the transistor could be a WHOLE lot lower than 250. Take a look at the datasheet and you'll see a big range in Hfe. Say the current gain was the min value of about 40...