Prop II DE0-NANO Emulator PCB
Sapieha
Posts: 2,964
Hi all.
Some update to this PCB
http://forums.parallax.com/showthread.php/145063-Sapeiha-s-Propeller-2-Base-Boards-DEO-Nano-Single-Cog-Emulator
http://forums.parallax.com/showthread.php/125543-Propeller-II-update-BLOG/page93?p=1147326&viewfull=1#post1147326
Started mounting it.
In attachment posted configure file for Quartus. 2 files
For Quatrus remove .txt
Added - Revised Bill Of Materials
Some update to this PCB
http://forums.parallax.com/showthread.php/145063-Sapeiha-s-Propeller-2-Base-Boards-DEO-Nano-Single-Cog-Emulator
http://forums.parallax.com/showthread.php/125543-Propeller-II-update-BLOG/page93?p=1147326&viewfull=1#post1147326
Started mounting it.
In attachment posted configure file for Quartus. 2 files
For Quatrus remove .txt
Added - Revised Bill Of Materials
Comments
Added .qsf file to first post
Added - Revised Bill Of Materials by Bill Henning
Edit: I guess the fine-pitched headers were a mistake. They should have been normal headers. Not a problem since I have some of those anyway.
On picture in attachment You will see what 5 parts needs for absolute minimum for use of Flash.
To SMT resistors I remade one Tweezer that instead to be pressed it normally are closed --- I need open to place resistor in it -- and it hold resistor to time I open it again
Then Solder DAC resistors on opposite sides -- inside not soldered before both rows are placed
I thought the two central 40 pin female headers have to be mounted on the bottom of the board?
Good thing I have not finished soldering it up!
This 3D picture in my previous post Show correct placement of all components
I am about to start building the board...
The SchoolBoard 2 build manual at mikronauts.com/downloads shows one technique to solder SMT resistors without a stencil.
No problem.
If You have any question --- Simply ask --- That spare You problems
I should have mine finished tomorrow; I have all the 0805 resistors mounted now.
Thanks.
Good I don't soldered my resistors -- But now I need buy that ones You describe
Too bad I finished soldering all the resistors.
Correct me if I am wrong, but using 65R/110R resistors for the ladder will still give a viewable signal - but at a lower brightness? (I am guesstimating 20%-30% dimmer)
It's worse than that. I measured the intrinsic I/O pin resistance on the Cyclone IV device @3.3V at 12 ohms. So, The 2R component of the R-2R ladder must be 2R-12 to compensate for this pin resistance. If your R is 65 ohms, you'll need 2*65-12 (or 118) ohm resistors for the 2R values. If you keep the 110 ohm resistors, you could, instead, replace the 65 ohm resistors with (110+12)/2, or 61 ohm resistors. If you don't get the R-2R relationship as close as possible, the DACs will have monotonicity problems. The worst error occurs at the $0FF to $100 transition.
I guess I'll have to live with it on the one I assembled. I don't really want to rework it right now (plus I'll have to order more 0805 resistors).
I should have waited longer to assemble it... but it was sitting there, tempting me!
Thanks for the corrected values.
Another possible fix I am considering is to use high speed (say 200MHz bandwidth) op-amps to let me adjust the gain/offset for each DAC channel... a nice cheap quad op-amp in a DIP package with some pots and caps.
It seems like that may be less rework/soldering, and would allow for a lot of flexibility.
Sapieha_DE0_Nano_Config.zip
Note: the PIN_XXX notations are for Sapieha, mainly, so he can see where the signals were routed to all parts of his board, as well as signals internal to the DE0-Nano board.
Now I need only find differences.
** NO ROOM FOR THIS PIN: PIN_E15 .......SW1 ....... Input only" -- In PM You write to me SW2?
Hi Sapieha
I'm not sure what differences you are looking for, but I noted there is perhaps some confusion with the switches.
The tiny bank of 4 switches on the DE0 is (according to terasic DE0 manual) wired to pins M1, T8, B9, M15 (SW[0]..SW[3]).
By contrast Altera pin M16 breaks out to JP1 pin 1 (40 way header), this is what Chip calls SW3
and Altera pin T9 breaks out to JP3 pin 4 (26 way header on back of DE0), Chip calls SW4
I think the most likely explanation is a wrong pin base, in which case
SW[3] is on M15 (not M16) and
SW[1] is on T8 (not T9)
There are other posisble explanations, such as external switches, or an error in the manual or in the code list.
While we're at it, pin functions for the ADC128S022. There are 8 analog inputs coming into the 26 pin header JP3.
PIN_A10 -to P[38] ... ADC CS Chip Select
PIN_B10 -to P[39] ... ADC SADDR ("D IN" on ADC)
PIN_B14 -to P[40] ... ADC SCLK clock signal
PIN_A9 -to P[41] ... ADC SDAT data ("D OUT" on ADC)
The other stuff - SDRAM, Accelerometer, I2C, all looks fine.
It is not SW's on NANO --- It is SW's on my PCB.
And I found all and why --- On my PCB SW[1..2] can't be used --- This pins on Emulation are used for other proposes.
Pin List to my version of NANO - P2 emulation PCB.
http://forums.parallax.com/showthread.php/145063-Sapeiha-s-Propeller-2-Base-Boards-DEO-Nano-Single-Cog-Emulator
Posted as code and attachment.
Pin List edited on G_sensor and EEProm part
Pin List edited on G_sensor and EEProm part.
Added -- EEPROM I2C ADDRESS W/R = 0xA0/0xA1 to dual usage of I2C bus
One question I forgot to ask --- Have we still 32Kb RAM --- Else You use now all available ?
For the DE0-Nano, there's 32KB of hub RAM. On the DE2-115 you get the whole 128KB.