XSMB-L1 Works !

XCore Project reviews, ideas, videos and proposals.
User avatar
leon_heller
XCore Expert
Posts: 546
Joined: Thu Dec 10, 2009 10:41 pm
Location: St. Leonards-on-Sea, E. Sussex, UK.
Contact:

Post by leon_heller »

I suppose you used a simple resistive VGA interface. Could we have the schematic, please?

I just tried building it with the current tools, but got an error:

C:\XMOS\vga_4bpp_320x240>xmake
xcc -O2 -g -c c_vga_refresh.c
xcc -O2 -g -c vga_refresh.S
xcc -O2 -g -c xc1.xc
xcc -O2 -g -c xc1_c.c
xc1_c.c: In function 'arand':
xc1_c.c:24: warning: implicit declaration of function 'rand'
xcc -O2 -g -c vgagen.xc
vgagen.xc:66: error: function network needs type
xmake: *** [vgagen.o] Error 1

It's probably something trivial.


ale500
Respected Member
Posts: 259
Joined: Thu Sep 16, 2010 9:15 am

Post by ale500 »

I'll post a circuit as soon as I am home.
This was compiled with the old tools. It has to be refactored for newer versions:

you have to change the declaration from the old type to the new one:

Code: Select all

int main( void )
{
chan draw_channel;

    par
    {    
        on stdcore[0] : c_vga_refresh();
        on stdcore[0] : xc0_draw(draw_channel);
        on stdcore[1] : xc1_control(draw_channel);
    }
    
    return 0;
}

that should do it... (ports are hardwired, I know old technique!).

Edit: I'll post an updated version, this was only an example.
ale500
Respected Member
Posts: 259
Joined: Thu Sep 16, 2010 9:15 am

Post by ale500 »

The board is my own design. I used the datasheets and available circuits. I have several uses in mind, one of them is a portable logic analyzer. I don't want to have to use a PC every time I need to measure something...
ale500
Respected Member
Posts: 259
Joined: Thu Sep 16, 2010 9:15 am

Post by ale500 »

Here is the simple dac circuit I used, and a buffered version I'd recommend. These DACs can be connected to the XC-1
Attachments
buffered-dac.pdf
(15.47 KiB) Downloaded 198 times
buffered-dac.pdf
(15.47 KiB) Downloaded 198 times
simple-dac.pdf
(13.56 KiB) Downloaded 204 times
simple-dac.pdf
(13.56 KiB) Downloaded 204 times
ale500
Respected Member
Posts: 259
Joined: Thu Sep 16, 2010 9:15 am

Post by ale500 »

I think I smoked the PLL :(. I applied 3.3V to it :(, the xrun utility says that XCore 0 is not enabled :(. Clock is stable at 25 MHz, TRST sends 2 40 us pulses... 1V looks good and 3.3 too... I probably should check sequencing, I think it should work.. :(. I'll build a second board.

Edit: *** The schematic (and board) have the 4R7 resistor connected from PLL_AVDD to +3V3 that is a mistake. It should be to +1V0, as 3.3 V would most probably destroy the PLL, read above please.
Post Reply