Rinse and drain the split peas.
Heat oil for the peas in a pot at low-medium heat. Add ham or bacon, cook until browned and reserve, draining oil.
Add onion, cook for about 10 minutes. Add garlic and ají panca, cook for another 5 minutes. Add peas, water, salt and pepper. Bring to a boil and simmer until fully cooked (about 35 minutes).
While the peas are cooking, heat oil for the rice in a pot at low heat. Add garlic and cook until lightly browned. Add rice, stir to coat. Add water and salt, bring to a boil. Reduce heat to a minimum and simmer until water is fully absorbed.
When peas and rice are almost ready, fry eggs and season with salt and pepper.
When peas are ready, add ham or bacon and mix well. Adjust seasoning.
Serve split peas with rice, a fried egg, some salad and salsa criolla.