Jump to content
43oh

DanAndDusty

Members
  • Content Count

    134
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by DanAndDusty

  1. Thanks for the tips guys. Rob. Thats an SMD device so not for me at the moment. Opossum, From looking at the datasheet the IRLZ44 looks like the device to go for. From the output characteristics Fig 1 graph looks like it can sink about 18A-19A at 3.0v so looks ideal. I didn't mention it in my first post but I'll be looking at using 12v. What part of the datasheet should I look at to see what sort of PWM frequencies it can handle? I gather there will be heat and capacitance issues to take into consideration. Thanks for the tip on the gate resistor. Is that in series between the
  2. Hi all, First off let me say I am a newb when it comes to electronics Im more of a coder. I am after driving led strips and motors from the 430. Im familiar enough with BJT transistors.. However the LED strips need 2A and the motors have a stall current of 8A. So Im looking at allowing 12A to allow for a safety margin. Even if I found a darlington that could handle the current there doesn't seem to be anything with a Hfe that could bump the 430s meagre output to 12A. It looks like I need some alternative. It looks like I need a MOSFET or similar. I gather that unlike the BJTs
  3. Not sure of a way of doing it automatically.. But if you press it pops up the chooser for the matching variables/functions.
  4. Hey CorB, looks like we have been working on the same project. Ive also written some code (needs tidying still but will post when Im happy) to drive these LCDs. As Ive been using mine for the $4.30 booster pack using Hardware SPI wasn't an option for me so I was bit banging too. As there was ADC pins used I also used your code for setting GPIO pins.. lol.. Given the extra ram on the C2000 I think it should be possible to code up a reasonable graphics library (add to buffer and then chuck out the whole buffer to the LCD). Anyways.. Thanks for the GPIO lib.. made things a lot easier
  5. Im not totally sure in that case. The function is defined in that file and the linker isn't finding it. Adding the source file via "add files" should be the way to go and the linker should know about it. There are a couple of things I would check. 1) Is the file excluded from compilation (Can't remember how but the file changes colour/shade if excluded so should be fairly clear). 2) Has the function name been corrupted in the source file (maybe hitting a key accidentally when viewing it.. If this was me I would open the file and check that the onewire_line_high function is
  6. I don't know this library and I don't have the device. But Ive had a quick look and that function is in the file onewire.c. So you will need to #include the header file into your main source file, and also add the onewire.c file to your project. (I am assuming that you haven't built these into a .lib file that you will need to tell the linker about).. Dan
  7. Cool, Glad it worked.. I only came back because I remembered that there is another way.. Instead of the cast you can add UL to the end.. Which is clearer is up to you.. but 1UL << pinNumber should also work.
  8. I don't have access to my dev terminal here at the moment.. But I seem to remember hitting something similar on a different processor a while ago. Does it work if you cast the 1? I.E. GpioCtrlRegs.GPADIR.all |= ((unsigned long)1<<pinNumber);
  9. Payment sent. Please note that although I updated to include the booster PCB the first post doesn't show this. Ive done a gift payment (me paying the fee) of..... GPS: $15.61 Booster PCB: $5 Intl shipping: $5 Total: $25.61
  10. From re-reading all this looks like the base GB is for the GPS module only.. so Im adding a booster PCB to the list. That way I will actually be able to use it.. Bluehash - 10 Cubeberg - 1 + 1x 43oh Booster GeekDoc - 1 + 2x Rob's logger board OppaErich - 2 djun - 1 + 1x 43oh Booster gmtii - 1 + 1x 43oh Booster DandD - 1 + 43oh Booster
  11. All I can think of to say after seeing that is.. Wow.. gimme gimme... Is CCS going to be unlimted? 32K limit with 256K of flash would be a pain... But GCC as an option would lessen that pain.
  12. Put me down for one also pls. I'm assuming I have to add $5 for international shipping. Sent from my GT-I5700 using Tapatalk 2
  13. You are correct on the P1DIR and P2DIR.. however your value to use in the register is incorrect. Basically the register is a bit mask for ALL the pins on the port. These following lines all do the same and set P2.4 to be output... P2DIR = 0x10; P2DIR = 16; P2DIR = BIT4; P2.4 is the 5th pin along (numbering starts at 0).. The mask in binary is therefore 00010000. In decimal this is 16 which is 10 in hexadecimal and BIT4 is defined in the device header file as one of these values. Personally I find the BIT4 varient easier to understand. The mask being built up this way
  14. Ive just had a VERY quick look at opossums code. I can see where the/a problem is.. I haven't dabbled in 430 asm yet but the comments help here . serial_setup ; - Setup serial I/O bitmasks and bit duration (32 minimum) mov R12, &out_bit_mask ; Save serial output bitmask mov R13, &in_bit_mask ; Save serial input bitmask bis.b R12, &P1DIR ; Setup output pin bis.b R12, &P1OUT ; bic.b R13, &P1DIR ; Setup input pin So using the same pin the P1
  15. Some nice looking deals there.. until you look at shipping charges to the UK... $60
  16. Mine arrived in the post this AM. Packaged well enough that the postman was unable to destroy it. Thanks for this MTG.. Looking forward to playing with these when I get the time. Dan *edit* Forgot to mention.. Im in the UK if that helps
  17. Darn.. A smidgen too late.. Placed order.. heading to checkout.. and OOS.. Heres hoping they come back in soon... Thanks SA.. these are looking really awesome.. and your subsidy is greatly appreciated. Dan
  18. Im interested in a Nokia Breakout or two.. but shipping details to the UK aren't on the system.
  19. __bis_SR_register(LPM0_bits + GIE); // Enter LPM0, interrupts enabled This puts the 430 into low power mode 0. The CPU clock is off.. So any code after this will never get reached unless the CPUOFF bits in the SR are cleared inside one of your interrupt handlers. The code for this is __bic_sr_register_on_exit(LPM0_bits). Basically this says "when this handler exits clear the bits for LMP0". This will enable your CPU clock again. Alternatively you can change the line to read __bis_SR_register(GIE); which will enable the interrupt handlers but won't switch off the CPU clock.
  20. Hi and welcome to the forums. You gave a good amount of info in your post and so you have a question I can actually answer I haven't had a look at your code, but your connections are wrong. SIMO stands for Slave In Master Out (you can probably work out what SOMI stands for).. So you need SIMO on the master device connected to SOMI on the slave, and same with the other connection. Your clock connection is fine. Hope this helps.. Dan
  21. As long as you aren't using the crystal oscilator P2.6 and P2.7 are available as GPIO pins. (From memory I think you have to ensure BIT6 and BIT7 are cleared in P2SEL. Dan
  22. Nice project. Loving the beeps. My son would love this. Personally Im very grateful to you for letting me know about the AS1106 IC. I have a few 8x8 displays (and a home made 16x8).. so im impressed with this little beauty. Thanks, Dan
  23. Only had time for a quick look (getting son ready for school)... but I spotted that line.. The fequency is 32768 and you need to set CCR0 to 32767 (because there is a tick for 0 I believe)
×
×
  • Create New...