Jump to content
43oh

TheDirty1426459890

Members
  • Content Count

    13
  • Joined

  • Last visited

Reputation Activity

  1. Like
    TheDirty1426459890 got a reaction from Rickta59 in ARM programming on a breadboard   
    I made up my own breadboard adapters for the 1114 and 1313.
     

     

  2. Like
    TheDirty1426459890 reacted to dellwoodbu in How fast is the IO?   
    The Stellaris GPIOS connect to the core through both the APB and the AHB busses.  The AHB is faster.
     
    Use SysCtlGPIOAHBEnable to enable the port you want.  Then for absolute fastest toggle use HWREG(AHB BASE ADDRESS + (pin mask << 2)) = GPIO_PIN_x; // or zero.
     
    The pin mask is a feature of stellaris that allows you to add an offset to the base address which becomes a pin mask.  You can then write a single pin of a GPIO port without doing a read modify write.  The hardware only twiddles the pins that set in the mask value.  The right shift by 2 makes each pin mask a unique 32 bit address to write to.
     
    I believe with this method you can get a GPIO state change every 2 system clock cycles.  20 Mhz square wave from an 80 Mhz part.
     
    Using the Timers in PWM mode is often a better way to make these high speed signals.
     
    Also be aware that Stellaris has selectable GPIO drive strength.  Default is 2 milliamps.  Max is 8mA.  To go this fast you may need to up the drive strength.  I know high drive strength is need when doing very high speed SPI signals on the chip.
  3. Like
    TheDirty1426459890 reacted to Thomas1426459898 in LM4F120 CAN peripheral   
    I also used the MCP2551 to connect a LM4F120 (on the Stellaris Launchpad) to a CAN bus. It's really simple.. just connect the TX and RX lines to the MCP2551 and set the proper pin configuration in the simple_tx example (I used PE4/PE5 for the CAN0 module). Here is my mini-howto: http://www.fischl.de/arm/can_bus_interface_for_stellaris_launchpad/
  4. Like
    TheDirty1426459890 got a reaction from bluehash in LM4F120 CAN peripheral   
    Yes, it's an HC-06 I think, not the HC-05 I originally stated.  The one without the host mode option.  It has the original linvor firmware on it.  I've been playing with interfaces to Android, which is pretty easy over bluetooth serial.
     
    If I get this running I can use it to send CAN messages to display on an Android device app or just a serial bridge to PC.
  5. Like
    TheDirty1426459890 got a reaction from bluehash in LM4F120 CAN peripheral   
    I'm embarrassed about the etching job.  I ran out of alcohol to clean the board and it didn't take very well, but it's all put together if not pretty.  I also realized after I took the picture that the board was plugged into the launchpad backwards, but I'm too lazy to retake the picture.  Oh well, I'll try it out next week.  I didn't want to just put on the CAN transceiver and waste all the rest of the space so I put on a place to plug in an HC-05 board and cheap LCD.
     

  6. Like
    TheDirty1426459890 reacted to The_YongGrand in Very Basic HD44780 driver for Stellaris LaunchPad   
    Here's a very basic HD44780 driver for Stellaris Launchpad.
     
    Supports up to 20x4 LCD and a full PORTB register is used. Due to the nature of the GPIOPinWrite function which uses masking and whatnots, extra code on the driver will be written in the future to accomodate such functions.
     
    Uses two files: hd44780_lp.c and hd44780_lp.h
     
    An example is in the attachment. It's called "lab2" because I fooled around with the Stellaris Launchpad Workbook earlier.
     
    Note: Please refer to online tutorials on the HD44780 connections.
     
    Comments are greatly appreciated!
     

    lab2_revised.zip
  7. Like
    TheDirty1426459890 reacted to fatihinanc in Simple HD44780 Library without driverlib   
    Hello,
     
    I have tested 2x16 LCD and works well. Included pll and systick routines.
    Thist project is wroted withotut any driverlib functions. It will be a good example for "bare-metal coding".
     
    https://github.com/fatihinanc/stellaris-launchpad/tree/master/1602_lcd
     
    HD44780 1602 LCD Connections;
     
    RS -> PB0
    EN -> PB1
     
    D4 -> PD0
    D5 -> PD1
    D6 -> PD2
    D7 -> PD3
     

     
  8. Like
    TheDirty1426459890 got a reaction from xpg in ARM programming on a breadboard   
    I made up my own breadboard adapters for the 1114 and 1313.
     

     

  9. Like
    TheDirty1426459890 got a reaction from bluehash in ARM programming on a breadboard   
    I made up my own breadboard adapters for the 1114 and 1313.
     

     

  10. Like
    TheDirty1426459890 got a reaction from spirilis in J-Link debugger for $20   
    Don't buy this. I bought this one about 2 months ago and it is not compatible with the latest drivers, which is a pain. I never got it working with the old drivers and I bricked it trying out the new drivers, because they have an Anti-clone check.
     
    I bought this one from an e-bay seller:
    http://www.hotmcu.com/usbminijtag-jlink-jtagswd-debuggeremula%E2%80%8Btor-p-29.html?cPath=3_25
     
    It works with the latest drivers. It's tiny and it has dual status LED's. One for USB connect and one when there's power found from the connector. The old one looks like it has some level shifting chips which this one does not, but I don't use anything other than 3.3V anyway.
     
    I use it with this 20pin to 10pin 1.27mm adapter because I use the standard SWD header on my projects.
    https://www.olimex.com/Products/ARM/JTAG/ARM-JTAG-20-10/
     
    Works fine and it's fast. This replaces my old FT2232 based JTAG with SWD adapter that I used.
  11. Like
    TheDirty1426459890 got a reaction from bluehash in J-Link debugger for $20   
    Don't buy this. I bought this one about 2 months ago and it is not compatible with the latest drivers, which is a pain. I never got it working with the old drivers and I bricked it trying out the new drivers, because they have an Anti-clone check.
     
    I bought this one from an e-bay seller:
    http://www.hotmcu.com/usbminijtag-jlink-jtagswd-debuggeremula%E2%80%8Btor-p-29.html?cPath=3_25
     
    It works with the latest drivers. It's tiny and it has dual status LED's. One for USB connect and one when there's power found from the connector. The old one looks like it has some level shifting chips which this one does not, but I don't use anything other than 3.3V anyway.
     
    I use it with this 20pin to 10pin 1.27mm adapter because I use the standard SWD header on my projects.
    https://www.olimex.com/Products/ARM/JTAG/ARM-JTAG-20-10/
     
    Works fine and it's fast. This replaces my old FT2232 based JTAG with SWD adapter that I used.
×
×
  • Create New...