- Catalog
- Support
- FAQ
- Community Area
- How To
- Example Code
- AMICUS18
- User Projects
- Community Competitions
- Radio / RF
- Seasonal
CatalogPICBASIC CompilerAMICUSPIC ProgrammersPrototyping PCBSupportHelpUpdate PolicyAbout UsLegal Stuff (in no particular order)FAQPICBASIC ProU2 ProgrammerField ProgrammerHid MakerMicrocode StudioExperimenter BoardsCommunity AreaHow ToBeginnersCompiler Error CodesSettings for BeginnersExample CodeDarrel Taylors WorksA/DAudioEEPROMEncoderEthernet / InternetGPSI2CInfraredInterruptsKeypadsLCDLED DisplayMathReal Time ClockR/CSerial DataTimersUSARTOther Example CodeUSBInclude FilesAMICUS18EthernetVideoUseful LinksElectronics SuppliersWiki HelpUser ProjectsCommunity CompetitionsBigPIC4 Dev BoardAeronauticalAudio & MusicAutomotiveData LoggingGamesHealth & SafetyHome & UtilityInfraredNauticalOpto & DisplayProgrammingRadio / RFAmateurRoboticsR/C ModelSeasonalEaster4th of JulyHalloweenGuy FawkesChristmasNew YearSolarTemperatureTest & MeasurementOtherRe: Array error in Hserin
Thanks Richard.Ioannis Today, 14:40
Well this makes things more clear. Once I remember doing things in ASM, the banklsel was a pain...
IoannisRe: Array error in Hserin
might need glassesrichard Today, 12:47
there is none i know of but its pretty simple
A = wreg
B= byteRe: large preload includes
yep the #if works well enoughlongpole001 Today, 12:16
just need to make sure the #define is placed prior to the includes , which makes sense
saving the file a dif name for when the define is 0 and again when it 1 is...Re: Need to drive 4 rgb leds, but have only 1 pin available...
OK, I try to decreasing the clock frequency, and the minimum clock is 16MHz and the WS2812 works fine.louislouis Today, 11:26
In my case at 8MHz the WS2812 not work.
Pulse generator code for 16MHz looks like this:
...Re: Array error in Hserin
Wow! Thanks for the extensive test.Ioannis Today, 10:41
I suppose i=1+1 should be i=i+1, but does not matter in this test.
The MOVE?BA _ADRESLO are macros I guess, but where can I find documentation how to use...Re: Array error in Hserin
not much on today so i tried a few options with pic16f877 and 16f1825 with no other complications code wiserichard Today, 09:11
resultant code sizes are commented
array var word[2]
ADRESLO VAR BYTE
inx var...Re: Array error in Hserin
Yes I noticed that. Still no such reduction.Ioannis Today, 09:03
Most compact code was obtained with the crude
word_temp.byte0=adresl
word_temp.byte1=adresh
array[i]=word_temp
Now that I think about it, it...Re: Need to drive 4 rgb leds, but have only 1 pin available...
Sorry I should write 887A.CuriousOne Today, 06:12
Yes I have read that, but I don't have 20Mhz capability, so this is why I'm asking.Re: Array error in Hserin
makes no difference , did you notice that i had removed the math from the array indexing for the better method ?richard Today, 02:20Re: Array error in Hserin
Did you tested on 18F or 16F?Ioannis Today, 00:36
I did on 16F887. Maybe this is why I get more memory usage?
Ioannis
I hope you all might have gone through the PIC (Peripheral Interface Controller) tutorial developed by our contributor. This post is aimed to organize the tutorial in order (which is created as individual articles), so that all our readers can access the tutorial easily and efficiently. We have arranged the PIC tutorial in order from start to end below. Please go through our tutorial and feel free to ask your doubts in comments section.
Chapter 1: Introduction to PIC – As you may know already, PIC is the name of micro-controllers developed by Microchip corporation. PIC is the acronym for Peripheral Interface Controller. This chapter will give you an introduction to the world of PIC in general.
These registers are used for the I/O control. Every I/O port in the PIC microcontroller has two reg- isters: port data register and port direction control register. Port data register has the same name as the port it controls. For example, PIC16F84 microcon- troller has two port data registers PORTA and PORTB. PICBASIC PRO Compiler (PBP) is intended to be used within a system. Examples of device programmers are the U2 Programmer from.
Chapter 2: Basics of Microcontrollers– To understand basic concepts of PIC, you must have an understanding about the basics of microcontroller. Well you can skip this chapter if you already know 8051 or other micro controllers. If you are new to the world of micro controller, then we recommend you to read this chapter.
Chapter 3: Basics of Peripheral Interface Controller (PIC)– Now that you have learned about micro controller basics, you can now go through this chapter and learn basics of Peripheral Interface Controller (PIC).
Chapter 4: Introduction PIC 16F877 – Okay, by now you will have an idea about various PIC’s available in market. They are known as 16x8xx series. Now we are explaining here 16F877 PIC. There will be difference between other series PIC’s in many hardware features like Memory. But this tutorial is good enough to teach you basics of PIC. If you know PIC 16F877, then with ease you can learn other series very fast.
![Pic Basic Examples Pic Basic Examples](/uploads/1/2/6/3/126383982/173123015.png)
Chapter 5: PIC16F877 – Architecture and Memory Organization – So here begins the core tutorial of PIC16F877. This chapter explains you the hardware architecture and memory organization of PIC 16F877.
Chapter 6: PIC16F877 – Register Memory Organization – This chapter will explain you the Register memory organization in PIC.
Chapter 7: PIC16F877 – EEPROM/Flash Memory Organization
Chapter 8: PIC16F877 – Input/Output Ports and TRIS Registers
Chapter 9: PIC 16F877 – Timer Modules
Chapter 11: PIC 16F877 – CCP Modules
Chapter 12: PIC 16F877 – USART Modules
Chapter 13: Advanced Features in Peripheral Interface Controller
Chapter 14: PIC Programming – Instruction Sets– Instruction sets are like building blocks available to a programmer. A programmer builds a program for an application in PIC using these instruction sets. They are divided into 4 groups. Data transfer group, Arithmetic and logic group, Bit operations group and Program flow control group.
Chapter 15: Data Transfer Group Instructions in PIC
Chapter 16: Arithmetic and Logic Operations Group in PIC
Chapter 17: Bit Operation Instructions in PIC
Chapter 18: Program Flow Control Group in PIC – This chapter explains the fourth group in PIC programming instruction set. It explains instruction used in PIC to control the program flow.