Menu

31 + Demos for PIC16F18xxx family chips

Anobium
2022-09-12
2022-09-14
  • Anobium

    Anobium - 2022-09-12

    Just created and posted a series of demos that validate the compiler and tool chain for the chips below.

    PICkitPlus supports these chips - I will send the updated PICKItPlus database to users as soon as practical.

    These chips have nice features such as high fidelity FVR with reference data and improved I2C.

    Supported Chips

    PIC16F18015
    PIC16F18025
    PIC16F18026
    PIC16F18044
    PIC16F18045
    PIC16F18046
    PIC16F18054
    PIC16F18055
    PIC16F18056
    PIC16F18074
    PIC16F18075
    PIC16F18076
    

    The following chips have not been validated as Microchip have not published support for MPLAB-IDE, therefore, I cannot create the .DAT file .

    Chips not validated

    PIC16F18023
    PIC16F18024
    PIC16F18013
    PIC16F18014
    

    The demos validated a huge range of chip capabilities as follows:

    010_hello_world.gcb
    020_blink.gcb
    030_blink_another_way.gcb
    040_rotate_the_leds.gcb
    050_show_a2d_value_on_leds.gcb
    060_variable_rotate_the_leds.gcb
    070_debounce_the_switch.gcb
    080_using_the_reset_switch_as_an_input.gcb
    090_reversible_leds_with_variable_delay.gcb
    100_reversible_leds_with_variable_delay_to_serial_terminal.gcb
    110_rotate_the_leds_using_16bit_timer0_.gcb
    120_use_pwm_via_ccp_and_adc_to_control_led_brightness.gcb
    130_rotate_the_leds_using_8bit_timer0.gcb
    140_rotate_the_leds_using_the_timer_overflow_event.gcb
    150_show_i2c_devices_to_serial_terminal.gcb
    160_showing_eeprom_data_to_serial_terminal.gcb
    170_using_external_interrupt_to_raise_an_event.gcb
    180_ensuring_program_matches_chip_specfiied_to_serial_terminal.gcb
    190_using_an_interrupt_to_manage_the_pwm_signal_to_control_an_leds_brightness.gcb
    200_i2c_glcd_using_ssd1306_128_32.gcb
    210_i2c_glcd_using_ssd1306_128_64_text_only.gcb
    220_i2c_glcd_using_ssd1306_128_64_graphics.gcb
    230_i2c_glcd_voltmeter_using_ssd1306.gcb
    240_pwm_fixed_modes.gcb
    250_pwm_variable_modes.gcb
    260_spi_glcd_using_ili9341.gcb
    270_millis_glcd_integrated_with_serial.gcb
    280_showing_SAF_data_to_serial_terminal.gcb
    290_showing_PROGMEM_data_to_serial_terminal.gcb
    300_basic_hardware_serial_loopback_to_terminal.gcb
    310_ringbuffer_hardware_serial_loopback_to_terminal.gcb
    

    The demos have PPS set by hand using the datasheet as neither PPSTool, MPLAB-X IDE or MCC Standalone properly support this chips family. Therefore these demos serve a great reference for USART, I2C, SPI, CCP/PWM and PWM PPS setup. I have opened a ticket with Microchip to resolve these PPS issues.

    I was unable to add a CLC demo as I was unable to get CLC to operate correctly. Again, I have opened a ticket with Microchip.

    These demos are in the latest build plus the masters are in GitHub here

    So, Great Cow BASIC supports these new chips. I will add the missing chips when Microchip release the reference information needed to create a .DAT file.

    I will create and publish a set of YouTube videos for these chips... watch this space.

    Enjoy

     

    Last edit: Anobium 2022-09-12
  • Anobium

    Anobium - 2022-09-14

    IMPORTANT INFOMATION

    These demonstrations prove the capabilities of the chip and the support of the Great Cow BASIC toolchain, however, the PPS statements in the demos were written based on the datashee not PPSTOOL or MCC from Microchip . Therefore, these demos serve a reference for PPS setup for serial, CCP/PWM, PWM. I2C and SPI

    PPSTOOL will be updated to support this chips as soon as practical.
    Microchip MCC will be updated to support this chips as at this time ( Sept 2022) MCC fails to correctly set the PPS for this chips. There is no valid configuration when using MCC for many of the capabilities. Microchip support ticket 01072592 confirms the MCC issues.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.