Show Posts
Pages: [1] 2 3 ... 119
1  Community / Exhibition / Gallery / Re: Arduino 6502 emulator + BASIC interpreter on: July 16, 2014, 07:44:08 pm
I broke a leg on the 1284 while moving it to a perfboard.

Damn me! I shouldn't be doing these mistakes after so many years?

Well, it will still run but the program will be a bit awkward?



I have used an Xacto knife before to cut (scrape) the encasement enough to solder a wire to a broken leg.  After ensuring a connection, coat with a drop of fast set epoxy.

Ray

2  Community / Bar Sport / Re: Your latest purchase on: July 14, 2014, 12:22:52 pm
TI Connected Launchpad: http://www.ti.com/tool/ek-tm4c1294xl
Several Cypress PSo4 Things, including some bare chips ($1 each!)
   Pioneer: http://www.cypress.com/?rID=77780
   Prototyping kits: http://www.cypress.com/?rid=92146 (what a great idea, as a "sample" alternative!)
I also scored an ST F4 "Nucleo" at EELive:  http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF260000
So many eval kits, so little time :-(


I ordered the $4 Cypress 4200 prototyping board.  It worked nicely, but no debug without the $99 dongle.  But, the 4200 Cypress Pioneer board w/ the Arduino-compatible headers is only $25.  I received mine last week and had some quality time with it this weekend.  I'm very impressed.  The 4200 has the 32-bit Cortex M0 core, 4K of SRAM, 32K of flash no eeprom but flash can be substituted easily... yes, user software can write flash!  Code can execute from flash or SRAM!

The PSoC Creator GUI, Compiler (GCC), debugger, and kitchen sink are all in the one package - free.  The debugger works great on the 4200 Pioneer board thanks to the PSoC 5 which is acting as the USB-serial bridge and the debug interface.  Code seems to compile well for speed and small code size.  The compiler and linker can have user-supplied runline parameters set in the GUI as well as lots of customization.  A++ on the effort.  The learning curve is a bit steep, but it may be just me, too.

For $25, the Pioneer board is a must have if you want to do some mixed signal work on a single chip for cheap.  The code developed on the Pioneer can be loaded on the $4 PSoC 4200 prototype board via the serial-USB bootloader - Caveat, the bootloader does take flash and SRAM, so if you want to avoid that, the 4200 'chip' is $1 each any quantity or you can purchase the Programmer for $99 and do anything.

I compiled a simple PSoC 4200 program with an implementation of the ILI9340/9341 TFT SPI library and the stats were:
Quote
Flash used: 14142 of 32768 bytes (43.2 %).
SRAM used: 1688 of 4096 bytes (41.2 %).

The above included the TFT driver library with 20 screen functions, one font, and the main() startup and initialization for the 2.2 inch display with a few lines of graphics.

Oh, the 4200 has a 48MHz system clock!  Sweet for the price.  In my book, this is a buy if you have the patience to read and watch a large number of training videos to jump-start your activities. 
http://www.cypress.com/psoc4200/


Ray
3  Community / Exhibition / Gallery / Re: Arduino 6502 emulator + BASIC interpreter + ILI9341 GLCD + Atmega1284P on: July 12, 2014, 11:24:57 am
I got this breadboarded yesterday and made some current measurements.
Disclaimer: I am knowingly running the 1284P overclocked at 16MHz and 3.09V from 2 AA batteries.  The current (a 20 Ohm resistor limiting the GLCD LEDs) was measured with my Fluke to be 34mA max during screen boot, and about 32mA running.  The Bobduino board is being used with the 16MHz but without a voltage regulator onboard... battery supply via the Vin pin.

Now, to address the serial ASCII entry.  I'm thinking a low-powered Bluetooth module and my old Logitech diNovo mini-keyboard.

I simply love the emulator running on the TFT display.  Way cool, Jan.


Ray

Edit... I added this code:
Code:
#include <Streaming.h>
// ...
char curkey = 0 ;
// ...
Serial.begin(19200) ;
 Serial << "AVR C64 emulator coming online at 19.2K BAUD \n \r \n \r" ;
// pito snippet
  if (Serial.available()) {
    curkey = Serial.read() & 0x7F ;
    Serial << curkey ;
    RAM[198]=1;
    RAM[631]=curkey;
  }

and changed the background TFT color for the picture.  I used TeraTerm as the keyboard.  Notice the error with the lowercase "i" in "Pi" on the TFT output.  One must completely wait after pressing Return/Enter for the TFT to stop scrolling before beginning to type again.
4  Using Arduino / Displays / Re: Report: Inexpensive SPI based TFT Displays (PCF8833, ST7735, ILI9341) on: July 11, 2014, 10:03:58 am
@Ray
The request was to support a display with RA8875 controller. This kind of display, i have not seen for less than $10.

Oliver



Thank you, I totally missed the context of the response!  I agree, the RA8875 is a different beast.

Regrets,

Ray
5  Using Arduino / Displays / Re: Report: Inexpensive SPI based TFT Displays (PCF8833, ST7735, ILI9341) on: July 10, 2014, 08:26:40 pm
Ok, looks nice. Still the main problem is the price. Ucglib is just a private project.

Oliver

These are available in the $6 U.S.D. range from Hong Kong.  I have received 12 out if 12 good ones in excellent condition.  They work great with 3.3V 328 @8MHz and I have had no issues over clocked at 16MHz.  Ideal mate for those $3 "mini" modules which attach to the back of the display with double-stick foam tape.
http://www.ebay.com/itm/141147721733

Bottom line, color display and UNO compatible for under $10 ...
The Adafruit GLCD works well with the Adafruit libraries if anyone is concerned about the nature of the UGClib.

Ray
6  Using Arduino / Project Guidance / Re: Ardutester - Arduino Component Tester on: July 10, 2014, 12:55:34 pm
Hi,
I have a couple of versions, but which one would you recommend me trying?

Thanks

Anthony

Gee, hard to say... Go to the oldest and try that, if it works OK, then move forward in time.  The damage I noticed showed up with diodes getting misclassified and even the anode/cathode getting swapped sometimes... Also, some weird menu problems but I cannot remember the specifics.

Ray
7  Community / Bar Sport / Re: Your latest purchase on: July 04, 2014, 08:12:43 pm
Playing around with PSoC... Just got a couple in and working through the learning curve.  So far, impressed... Completed the UART & LCD tutorials and will be trying out some of the analog modules.  GNU compiler is C++ capable but default GUI is configured for C.

Ray

http://www.cypress.com/?rid=92146
8  Community / Exhibition / Gallery / Re: Simple Calculator (5110 LCD + Ps2 Keyboard ) on: July 04, 2014, 07:08:54 pm
@endrio,

Nice, and RPN... Cool.  When I wrote my calculator,
http://forum.arduino.cc/index.php?PHPSESSID=vmf2gmq25jmd7brfum41p9ish2&topic=147550.0
I just used serial I/O but the LCD and real keyboard is a nice touch.

More pics...
http://www.hackster.io/rayburne/scientific-calculator


Bravo!

Ray
9  Community / Exhibition / Gallery / Re: Arduino 6502 emulator + BASIC interpreter on: July 01, 2014, 12:32:41 pm
...
But you're right about it being cool.
Wish I could find a keyboard that matches the size smiley

I'm thinking an old cellphone slide keyboard, or maybe a Blackberry...

One of the "for parts" eBay things...
10  Community / Exhibition / Gallery / Re: Arduino 6502 emulator + BASIC interpreter on: July 01, 2014, 07:19:24 am
I did a quick mock up of my VIC-20 emu on the DUE board because it has a 2.2" TFT.
This was only a test to know that the video and cpu emulation works.

Now over to the PET ROM's

Those are a real mess.
Don't even know which ones to use.


That is pretty cool to see the character-based VIC-20 screen running on a TFT graphic display and on ARM Cortex-M3.  Pretty Wow!

I'm thinking that you should be able to get the Cypress PSoC 4200 to perform the video almost exclusively without the CPU intervening which would put a 4K VIC-20 into a Minty Can size!!!  Way cool, Jan.

Also, as a testament to the 6502 emulator code, it seems to run fine on ARM Cortex.  Great job there,
miker00lz.


Ray
11  Topics / Science and Measurement / Re: voltage divider for temp sensor on: June 30, 2014, 03:00:37 pm
Quote
I used a thermistor a while ago and I could get temp readings  within 0.1C; but that was  based on the manufacturer's provided coefficients and equation.

Well, yes that is true, but thermistors are inexpensive and the data sheets for major many factors are easily found.  As always, if one goes through surplus junk to salvage parts, they are pretty much on their own to categorize the spoils.

For the above crowd, a late friend of mine posted another way to implement thermistor temperature readings.
http://www.phanderson.com/picaxe/lin_thermistor.html


Ray
12  Community / Exhibition / Gallery / Re: Arduino 6502 emulator + BASIC interpreter on: June 30, 2014, 02:52:50 pm
...
It compiles and I get
Code:
6502 EhBASIC [C]old/[W]arm ?

Memory size ?
in my terminal.
Sorry for my naive question - what needs to be done next? When I enter a number (or I just press enter) I see nothing.. smiley

PS: I've changed to TeraTerm terminal and it seems it works:
Code:
6502 EhBASIC [C]old/[W]arm ?
Memory size ?
9231 Bytes free
Enhanced BASIC 2.22
Ready

When you press Enter in response to "Memory size?" All free (S)RAM is used... In the old days, you would type in a smaller number if you needed to load a second "piece" into RAM, maybe an assembler program.
The Cold/Warm is to permit you to have a "C" complete boot with nothing in the program space or a "W"arm boot to preserve the already loaded program. 
These things are holdovers from the original ROMs.

Ray
13  Community / Exhibition / Gallery / Re: Arduino 6502 emulator + BASIC interpreter on: June 29, 2014, 04:47:14 pm
What, no Kaypro. They were built like the proverbial brick shit house, weighed a ton.

http://oldcomputers.net/pics/kayproii.jpg

Yep  I do remember and came very close to buying one, but got interested in IBM because I had access to one at work. 

update to Jan, here is the PET ROMs:

http://www.6502.org/users/andre/petindex/roms.html

See if you can get it to work with the 2.2" TFT SPI display... I have like 8 of them!  Also, I have a tube of Atmega 1284 with 16K... Sweet.

Ray
14  Community / Exhibition / Gallery / Re: Arduino 6502 emulator + BASIC interpreter on: June 29, 2014, 04:32:50 pm
Get me the memorymap, Ray ,and some ROM dumps and I'll put together a CBM PET?
I love those 6502 machines.

This is fun stuff.


The P.E.T. has some age on her, I hate to pull the ROMS, but will unless I can find the listings online.

I also have an Apple collection, Apple ][ Plus w/ Integer card & CPM card (2) machines, and all 6 of the first Macintosh b/w series units (yes, that is a 128 original next to the Fat Mac!).  Somewhere off to the right out of frame is an Osborne I CPM dual-floopy unit.

Back at one time, I had them all refurbished and they performed flawlessly, but these days I cannot find time for them.  Wish I could find 'em a good home.

Ray
15  Using Arduino / Project Guidance / Re: TVOut slows the millis() function on: June 24, 2014, 06:53:18 pm
I tried to use 2 Arduinos (as I said before).
I have stuck in communication of both Arduinos. Serial doesn't work, I use pollserial instead. And I can't get a stable communication between PC and Mini pro.

You may wish to look at Jan's AVR video blaster:
http://www.hackster.io/janost


Ray
Pages: [1] 2 3 ... 119