Maxing out the 16f59- Ideas about assembler and C

Discussion in 'The Projects Forum' started by takao21203, Mar 2, 2013.

  1. takao21203

    Thread Starter AAC Fanatic!

    Apr 28, 2012
    Assembler can be used for some types of programs.

    It is not wrong to try it and do the lessons.

    But don't limit yourself with 16f5x.

    The new enhanced Midrange PICs can address the FLASH and RAM linear,
    with a 16bit address register.

    Two file select registers.

    No banking neccessary via file registers.

    So you should use these for ALL your assembler projects, and ditch your old 16f84 and 16f884.

    In C, you can use any.

    I have maxed out the 16f59 in C language.
    A bit shuffler for the output, proportional fonts, and I2C temperature sensor.

    This would be not comfortable to program by human in assembler. Too much bankswitching.

    Bankswitching manually is not good for readability. You do not need to do this anymore in your assembler programs. They work with only a few changes neccessary.
  2. takao21203

    Thread Starter AAC Fanatic!

    Apr 28, 2012
    By the way this old watch is imported from THERE in Ukraine.

    One day I want to write a book about PIC circuits.

    So what do you prefer to read?

    Sometimes I don't get good feeback for my posts, even if I write details about my viewpoints, not to leave open misunderstandings.

    I always prefer to make things clear.

    Also I almost never draw schematics.
  3. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    Seriously I have no idea what your point is.
  4. tshuck

    Well-Known Member

    Oct 18, 2012
    679 of consciousness?
  5. patricktoday


    Feb 12, 2013
    Yeah, C can make a higher level impression and allow the viewer to make intuitive sense of what's going on and why it's being done; assembly is so low level, if you just take a snapshot into a particular block of code it may just seem to meander on in some slightly incomprehensible or even mundane way without giving the view hardly any sense as to what its purpose is, why it's there or what it really hopes to achieve.
  6. takao21203

    Thread Starter AAC Fanatic!

    Apr 28, 2012
    How can you handle an expression like above in assembler?
    And how easy can you modify it?

    To me the answer to that is obvious.