1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Array larger 1024 Bytes

Discussion in 'Oshonsoft' started by zas, Feb 11, 2015.

  1. zas

    zas New Member

    Joined:
    Feb 11, 2015
    Messages:
    12
    Likes:
    0
    Hallo, I am Trying with the AVR Compiler to write some Bytes into the Programm Memory for example a Sine Tab or some Wave. It have to be larger then 1kByte. How must i code it, is it possible? The BASIC Compiler Reference Manual says: That an array of Byte variables can contain up to 1024 elements.

    In C I have to define const array with no byte limit.
     
  2. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,310
    Likes:
    914
    Location:
    Rochdale UK
    If you are using Oshonsoft he already has sin covered.. Cos, Arccos, Arcsin, Tan etc....
     
  3. zas

    zas New Member

    Joined:
    Feb 11, 2015
    Messages:
    12
    Likes:
    0
    Thank you for the answer. Yes I use Oshonsoft. The Sin Tab is a example. The Point is that I want to burn many Bytes in the Controller.
    I try to play with PWM an Sound generating. It's quite plain to me that the Program Memory is not large enough. Currently its only for experiments.

    An other Way is to use an external EEPROM.
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. zas

    zas New Member

    Joined:
    Feb 11, 2015
    Messages:
    12
    Likes:
    0

    I use the Oshonsoft AVR Simulator IDE
     

Share This Page