Skip to main content

Topics

This section allows you to view all Topics made by this member. Note that you can only see Topics made in areas you currently have access to.

Topics - rwgast

1
Bus Pirate Support / Frequency counter to 40mhz? problems....
So im trying to measure the output of a TCXO that my cheap usb scope isnt fast enough for, its a 28.8mhz tcxo. Everytime I connect the groung and the blue AUX cable I get 0hz in normal or open collector mode.... I know the TCXO isworking in the hardware, can the BP just not measure sign waves? If so that should be mentioned in the manual
2
Pirate PIC programmer / Newb needs some advice on getting started with PICs
So I have been tinkering with micros and electronics for the last year or so. I am currently working on two kind of bigger projects, a mapping robot with DIY laser range finder and an entry for a military/parallax sponsored contest called MicroMedic (It is basically an automated hydration pack that reads the users hydration levels). Anyways these projects both keep growing and growing, I find myself adding more and more micro controllers to them.

I currently have experience with the Parallax Propeller, Parallax Basic Stamp, Arduino, and Bare AVR chips. The problem is most of these solutions are a bit pricey, it costs me around 5 - 12 bucks for all the stuff to get one of these controllers running (except an Attiny type chip but these are very limited). From looking around it seems like a PIC is a really cheap solution compared to AVR, I am also pretty broke most of the time and MicroChip is awesome about free samples, where as AVR is not. Anyways that being said I can't afford to just run out and buy a PicKit right now.

I am basically hoping to just get started using smaller PICs in place of AVR chips where it makes sense. I currently have a Bus Pirate, I also have an AVR USBISP programmer, and I just saw this viewtopic.php?f=38&t=3786 Im not sure if this allows a USBAsp/ISP to program a PIC or what? I know a BP can not program older PICs that require high voltage with out the add on but I am not to interested in those any ways. If I were to sample some PIC chips what would be a good choice? I know the pic24s can be programmed with a BP, what about dsPic and Pic32? I have some books on older pic16/18 assembly and c, would the code in those be compatible with a newer pic24, how about projects online using a pic16, could there firmware be easily ported to a newer PIC?

I guess what I am saying is I have a BP and I want to learn how to use PICs without running out and getting a PICKit, where should I start?
3
AVRDude / STK500v2 not working in AVR Studio
Ok so I am trying to build this

http://www.ikalogic.com/scanalogic-the-beginning/

the schematic is there showing how the ISP connection is wired to the chip. I wanted to try the STK500 firmware becuase I thought it would be nice to program my chip straight through AVRStudio and elminate AVRDude, flashing the BP back and forth as needed is no skin of my back, I hate USBAsp and I hate AVRDude so this STK500 firmware is really cool for someone like me. Anyways I flashed the STK500v2 Hi-Z package (im guessing this is what I needed since im not working with 3.3v) and then connected my bus pirate to the ISP on the schematic above using the Bus pirate programming connections table found here

http://dangerousprototypes.com/docs/Bus ... rogramming

I left my board unplugged and then connected the BPs +5 and GRND to the ISP header. I opened AVRStudio and then selected add new STK500 on com10, then selected Atmega16A and ISP, when I hit apply I AVR Studio tells me it can not communicate with an STK500 on com10, Im positive this com port is right .

Can someone tell me why I cant get this working, im kind of bumed out :/. Im not sure if this makes any difference but once ive loaded the firmware for the STK500 the vreg light stays on and I can no longer log in with putty I have to manually jump the board to get it back in to bootloader mode.
4
Bus Pirate Support / Bus pirate Scripting PWM, pdf manual?
Ok so ive had my bus pirate for a while and have ocasionally used it when working with uart. I know the thing is much more powerfull than that you can use it to test new chips to correct, lets say I wanted to play with some i2c thermometers I got it can do that too correct?

Right now Ive been working on a robot and am mostly doing the mechanical and electrical side not code. So for instance id like to test my bots turning and acceleration all that jazz, I know the BP has a PWM function i used it a while back. Im wondering how I could automate PWM and do some basic ramping or something with the bus pirate. Im looking to feed signals to two motors through an h bridge, theres 2 inputs for each motor, that need a PWM is there any way to pull this off, or even be able to get four wires from the BP to be hi or low depending on my script?

Also is there a PDF or something for the BP manual? what language is the scripting done in? Im wondering if my basic stamp is gonna be the best way to do quick testing, I like the BP though becuase its so much smaller
5
Bus Pirate Support / Uart & Jtag Voltages?
I recently ordered the bus pirate to help assist me in fixing a bricked cell phone. Im no EE but i am semi capable with electronics and build micro controller based projects quite a bit, so im not stupid either!

I was hoping to find a debug console via uart in the phone somewhere. I got the pirate because I believed that it worked from 0-5.5vs apparently for uart this is not true... it is only good down to 3.3v. Well it turns out the phones logic is 2.5v. Ive used the pirate to brobe around the phone quite a bit and havent found any UART serial, havent even picked up a garbage stream. My question is, is this becuase of the 2.5v logic level? I built a 3.3v logic analyzer and it still works fine with 2.5v logic becuase the propeller chip i use still reads 2.5v as hi in its spec, so im kind of trying to figure out if I havent found a serial console becuase there isnt one or becuase the voltages arent within the pirates tolerance.

Secondly I know nothing about JTAG have never tried to use it. Im hoping if I can not find a serial console that I can use the BP to connect to the phone via JTAG. Ive alread found out the chipset is works with openOCD and ive got a pic of the jtag pinout, will the jtag work at 2.5v? and i need to flash a different firmware for jtag correct?